Android Facebook SDK error

I’m trying to use Facebook SDK for Facebook sharing in my app.
Sharing on Facebook is okay, and it is correctly return to my iOS app when I press link button(returing to my app) on Facebook.
However, it will not return to my Android app showing “Install app Dialog” which is incorrect Play Store address.

I got the followings when returning to my Android app.

06-20 17:45:49.708 32225-32225/? E/fb4a(:):NativeThirdPartyUriHelper﹕ Native application url did not specify Android key hash.

I got 3 key hash. Which is the hash key for Facebook developer pages?

1) keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

2) Log output from debug mode in Android Studio

3) Log output from Release APK
PackageInfo info = getPackageManager().getPackageInfo(
“com.apposter.toksong”,
PackageManager.GET_SIGNATURES);
for (android.content.pm.Signature signature : info.signatures) {
MessageDigest md = MessageDigest.getInstance(“SHA”);
md.update(signature.toByteArray());
TokSongLog.d(“TAG”, “Hash : ” + Base64.encodeToString(md.digest(), Base64.DEFAULT));
}


Source: facebook

Leave a Reply