0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Facebook SDK for Androidをつかってみる

Posted at

(かなり前に書いて下書きになったままだったので公開してみる)
やり方は公式サイトにかいてあるとおりだとできないのでめもめも
https://developers.facebook.com/docs/android/getting-started/

環境

統合開発環境

  • わけあってeclipse

Android API

  • sdkを使うにはAndroid 2.2 (API 8)が必要とかいていますが、2014/9/20現在は4系APIでも問題なく動きました
    • 文書メンテされてないのかな…?
  • 一緒に入ってるsampleを動かすにはAPI9がmust
    • 入っていないと"Unable to resolve target 'android-9'" と怒られてしまいます

手順

Android 2.2 (API 8)いれる

SDK DL

adb install [ダウンロードした場所]/Facebook-11.apk

※ これ、何度やっても私はDLできませんでした…

Android 3.2.1 (API 9)いれる

これをいれるとSDKと一緒に入っているsampleアプリも動かせる
サンプルなんていらないって人は入れなくていいと思われるやつです
oldに☑いれないと表示されないので、一覧にないなーと思ってもあきらめないで

サンプルアプリを入れて動かしてみる

画面もSDKがもっているのか

なんとなく動きがわかって納得できたのであとは自分のアプリに入れて使ってみる!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?