-
Click "+ Create New App" (top right);
-
Fill the form - namespace is not important
-
Click "Create App" (bottom right);
-
App Dashboard screen loads
-
Click "Settings" (left)
-
Click "+ Add platform"
-
Add package name, launch activity name, and hash obtained by one of these ways(the second way is preferred):
-
Using keytool: In command prompt execute:
keytool: keytool -exportcert -alias <RELEASE_KEY_ALIAS> -keystore <RELEASE_KEY_PATH> | openssl sha1 -binary | openssl base64
-
Executing the following code in the onCreate() method of the launch activity of the app (the hash will be dumped in logcat with tag "KeyHash"):
try { PackageInfo info = getPackageManager().getPackageInfo( "com.facebook.samples.hellofacebook", PackageManager.GET_SIGNATURES); for (Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance("SHA"); md.update(signature.toByteArray()); Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT)); } } catch (NameNotFoundException e) { } catch (NoSuchAlgorithmException e) { }
-
Put
manifestmerger.enabled=true
in project.properties or paste this in yourAndroidManifest.xml
file:<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/app_id" /> <activity android:name="com.facebook.LoginActivity" android:label="@string/app_name" />
-
Put
<string name="app_id">your app id here</string>
in res/values/strings.xml -
You are ready for coding in Java!
-
-
Click "Create Project" (top left)
-
Fill out the form (project id is not important)
-
Wait up to 30 seconds for the project creation task to resolve
-
Project Dashboard loads
-
Select "APIs & auth" (left)
-
APIs submenu is selected; Scroll down to "Google+ API" and enable it
-
Click on "Credentials" submenu (left)
-
Click "Create new Client ID"
-
Select "Installed application"
-
Select "Android"
-
Put package name
-
Put SHA1 hash obtained by:
- Using Eclipse:
- Go to Window > Preferences
- Click Android
- Click Build
- Copy SHA1 fingerprint
- Using keytool: execute in command prompt
keytool -exportcert -alias androiddebugkey -keystore <path-to-debug-or-production-keystore> -list -v
-
Set DEEP LINKING to Enabled
-
Click "Create Client ID"
-
Put manifestmerger.enabled=true
in project.properties, if you haven't already or paste this in your AndroidManifest.xml
file:
-
-
Click "Create New App"
-
Fill out the form (Website and Callback URL are not important)
-
Select the "Permissions" tab
-
Set permissions to "Read, Write and Access direct messages"
-
Go to "API Keys" tab
-
Use API Key and Secret and any callback URL you want in your application.
-
Put manifestmerger.enabled=true
in project.properties, if you haven't already or paste this in your AndroidManifest.xml
file:
<activity
android:name="com.melon.android.socialnetworkslibrary.twitter.operation.login.TwitterLoginActivity"
android:label="@string/app_name" />