Invalid key hash. The hash of the key does not match any stored key

I am trying to do a second login from my android device in my Facebook app.
I have calculated the hash code with the following code: qaru.site/questions/2189928 / ...

I managed to do my first login (registration) to the FB app. Then I logged out. Now, when I try to login again, I get an "invalid key hash error", for example:
enter image description here


If I go to the Facebook user setup and uninstall the app, then I can login again and block the second attempt again.

I also tried the key-calculated hash: "~ / .android / debug.keystore" and it didn't matter.

I'll be glad to receive some suggestions here. Thank.

+3


source to share


2 answers


Make sure you have completed the following

Create your keyboard using the keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

 androiddebugkey

- default alias. Default password android

. Then he should ask for a password. Make sure all the above arguments are correct, otherwise it will generate a different hash



Paste this keyboard into the settings tab of the facebook developer console of your application.

If even after doing this you get the same message, make sure the key shown in the error message is the same as the one generated by keytool

+3


source


Just replace the happy error code with your app key. ie .. at https://developers.facebook.com/app application ...!



0


source







All Articles