I'm trying to implement facebook login to my app that I will publish on the playstore. To do this, we need to generate a release key hash. I tried to generate it by following the guide under the section titled "Setting a Release Key Hash". This is the command they tell us to execute (for Windows 7)
keytool -exportcert -alias <RELEASE_KEY_ALIAS> -keystore <RELEASE_KEY_PATH> | openssl sha1 -binary | openssl base64
ofcourse replacing <RELEASE_KEY_ALIAS> and <RELEASE_KEY_PATH>. I'm getting the 28-character hash key. But when I try to run my app, it's giving me an error
Invalid key hash. The key hash Hhle8*********************** does not match any stored key hashes. Configure your app key hashes at
http://developers.facebook.com/apps/<MY_APP_ID>
Now I know why it's an error, the key hash in the error message above isn't the same as the one generated by the command I executed (keytool -exportcert.....)
I'm new to this, and extremely confused, any help will be much appreciated. Why are the keyhashes different? I'm testing my app on a real device.