0

When i used the simple facebook login for Android which i made a few days ago i didn't have this prolbem.

Now when i run the app i get an "invalid key" - "Android key mismatch"

06-07 02:08:51.104: W/GET_MESSAGE(273): invalid_key:Android key mismatch. Your key     "Es2Fbgrno9htovlX6FcXiex6u0I" does not match the allowed keys specified in your application     settings. Check your application settings at http://www.facebook.com/developers

![api-key] https://i.stack.imgur.com/3cNRw.jpg

And here is the wrong key i get from the Android app :

![wrong-key] https://i.stack.imgur.com/hsK47.jpg

The key that i get from the app as an error is different from the key i have declared in Facebook developers

3 Answers 3

2

The key that is displayed in your error logs is the app signature sent by facebook. All you need to do is copy this key and paste it in your app dashboard,android app key_hash section.

1
  • I have updated both my keys. Should I wait for some time to it take effect?
    – Mahendran
    May 18, 2016 at 13:38
0

Make sure to set the key on the developers site (Native Android App Key Hash) to the hash of your signing cert. This is different than the API key.

See the instructions here, Step 4: Add app signature to the Facebook App https://developers.facebook.com/docs/mobile/android/sso/

Es2Fbgrno9htovlX6FcXiex6u0I is your hash - set the "Android Key Hash" to this value on the site.

0

Generate a SHA1, this link can help you. Generating SHA1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.