Another possible mistake (which happened to me) is the following: create a “Key cache” in the Facebook App Console and sign the Android application using another keystore.
Unfortunately, this is because Facebook Getting Started Tutorial is causing this error. It says that Android developers should use the standard debug key for Android in your examples and do not explain that the key hash should be generated with the same keystore that you sign in your application.
My recommendation is to set up two hash keys on your facebook console:
- standard debug key for Android:
keytool -exportcert -alias androiddebugkey -keystore ~ /.android/debug.keystore | openssl sha1 -binary | openssl base64
keytool -exportcert -alias yourappreleasekeyalias -keystore ~ /.your/path/release.keystore | openssl sha1 -binary | openssl base64
Remember: you cannot publish an application signed with the debug key generated by the SDK tools. Thus, it is not possible to publish the application using only the hash key generated using the first previous command line (as the facebook tutorial suggests.
For more information about signing your application, visit Signing Your Application .
source share