Skip to content Skip to sidebar Skip to footer

Facebook SDK 3.5 : Fetch User Data Example Works In Emulator But Not In Real Device

I am trying to implement fetch user data example give on developers.facebook.com It works fine on Emulator and displayes data in logcat but when i try it in real device it doesn't

Solution 1:

one of the most common pitfalls of the Facebook SDK is to get the Android keyhash for the debug.keystore but not for the distribution keystore.

I asume that if your app it´s working on your emulator it´s because you have set your debug.keystore hash on your Facebook app configuration on the Facebook Developer site.

You just need to run this line on the terminal:

keytool -exportcert -alias androireleasekey -keystore PATH_TO_THE_RELEASE_KEYSTORE | openssl sha1 -binary | openssl base64

And put it on the app configuration (Facebook Developers site) next to the debug one.

Hope it helps! :)


Post a Comment for "Facebook SDK 3.5 : Fetch User Data Example Works In Emulator But Not In Real Device"