After went though Getting Started FaceBook API, I get an error message after pressing in Android app the Login button:
Invalid key hash. The key hash does not match ..
None of the existing SO accepted answers were useful.
When generating the hash which password should I fill? Or an arbitrary password is ok?
I also tryed to fill in the hash key in error message into Facebook site, but it did not help.
I am using mac.
2
Answers
Get the keyhash generated by below code and put that keyhash into your facebook app,call this method in your Login Activity and get the keyhash from Logcat.
which OS you use?
In case you use windows:
MAC:
in section 7:
don’t forget to add in your activity: