I am trying to use facebook api for login on my android application. After following the tutorials I was able to get the confirmation screen after clicking login by facebook button. But when i run my application second time I get “Facebook key hash does not match any stored key hashes” error.
I follow other posts on stackoverflow, deleted my application and created once again etc. but on second run I again get the same error.
Facebook key hash does not match any stored key hashes
Do you know what can be wrong and why I do not get on first run but I get this error on second run?
2
Answers
try this:
add your package name and call this function in
onCreate
() of your Mainactivityit will print the Hash key on logcat…
copy and paste the key on developer panel ,remove other keys
Create a valid keystore to your android app:
(Windows)
Generate facebook hash key:
(Windows)
Or look at facebook error: “Invalid key hash. The key does not match any store hashes…”
There is your facebook hash key!
Then put your hash at app/settings (android) at facebook developer website.