-
Notifications
You must be signed in to change notification settings - Fork 227
Create Facebook App
Gorbin edited this page Sep 1, 2014
·
3 revisions
-
Register as developer
-
Add new app
-
Open Dashboard, where you can find App ID
-
Add App ID in your AndroidManifest.xml
<application> <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="**App ID**" /> </application>
-
Open Settings and Add your email
-
Add platform + Add Platform and choose Android
-
Add your package name from your AndroidManifest.xml
-
For hash key use 'keytool':
keytool -exportcert -alias <RELEASE_KEY_ALIAS> -keystore <RELEASE_KEY_PATH> | openssl sha1 -binary | openssl base64
Or programmatically:
public void printHashKey() { try { PackageInfo info = getActivity().getPackageManager().getPackageInfo("com.gorbin.androidsocialnetworksextended.asne", PackageManager.GET_SIGNATURES); for (Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance("SHA"); md.update(signature.toByteArray()); Log.d("HASH KEY:", Base64.encodeToString(md.digest(), Base64.DEFAULT)); } } catch (PackageManager.NameNotFoundException e) { } catch (NoSuchAlgorithmException e) { } }
11. Open Status & Review and start app More detailed: https://developers.facebook.com/docs/android/getting-started/