2014年10月29日 星期三
facebook sdk
copy -patse fbExampleMyApplication.zip下載
http://1drv.ms/1LpzJjB
0.build.gradle
compile 'com.android.support:appcompat-v7:19.1.+'
compile 'com.facebook.android:facebook-android-sdk:3.23.0'
1.AndroidManifest.xml
uses-permission and com.facebook.LoginActivity and meta-data
2.strings.xml app_id
3.mainfragment.xml com.facebook.widget.LoginButton
4.MainFragment LoginButton
5.dashboard
use pkname and activityname to get app_id and
Single Sign On
https://developers.facebook.com/apps/935943056446383/settings/basic/
reading
https://developers.facebook.com/docs/android/login-with-facebook/v2.2?locale=zh_TW
printKeyHash method provide hashkey you need
ps
1."C:\Program Files\Java\jdk1.7.0_67\bin\keytool.exe" -exportcert -alias androiddebugkey -keystore C:\Users\linkulife\.android\debug.keystore | C:\openssl\bin\openssl.exe sha1 -binary | C:\openssl\bin\openssl.exe base64
2.http://javatechig.com/android/how-to-get-key-hashes-for-android-facebook-app
如果要取得個人資訊請看
https://developers.facebook.com/docs/android/graph/?locale=zh_TW
https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2?locale=zh_TW#fieldexpansion
沒有留言:
張貼留言