【Facebook SDK】スタートガイドなど

1. スタートガイド

1. Unity用Facebook SDKをダウンロードする。
2. Unity メニューバーにFacebookが表示されるようになる。
2. 「My App」→「Add a New App」でアプリIDを生成

http://bribser.co.jp/blog/install-facebook-sdk-unity-android/

※Facebookのシェア機能を付けるにはFanpageが必要。


2. 確認事項

  • 「Facebook」「FacebookSetting」で「Add Id」が「FacebookDeveloper」と一致しているか確認。

Key Hash取得に関して

Please follow below steps to find debug.keystore and generate key hash for android development at mac.

Open terminal

*Type cd ~/.android and hit enter to go to .android directory

If you want to open .android directory in finder, type open . and hit enter. Then .android directory will be opened in finder where you can find debug.keystore. If you do not want to open .android directory and only want to generate key hash, then skip this point and follow #4.

In terminal where you are already in .android directory type

*keytool -exportcert -alias alias_name -keystore sample_keystore.keystore | openssl sha1 -binary | openssl base64

and hit enter.

You are asked for password. Enter android as password and hit enter. Then you get key hash ending with "="

Copy key hash,enter in your facebook app setting page and save changes.


Release Key Hashに関して

keytool -exportcert -alias "(alias)" -keystore "(キーストアの場所)" | openssl sha1 -binary | openssl base64
//コマンドプロンプトで実行