Trying to create an android app with Facebook integration, I've gotten to the part in the docs where you have to generate a key hash file, it specifies to run the following code
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore
| openssl sha1 -binary
| openssl base64
When I run this in my terminal I get an error for Keystore tampered with or password was incorrect,
I just want to generate my Key Hash
Can anyone point me in the right direction?
I. Create key hash debug for facebook
Add code to print out the key hash for facebook
II. Create key hash release for facebook
(press) keytool -exportcert -alias gci -keystore D:\folder\keystorerelease | C:\openssl\bin\openssl sha1 -binary | C:\openssl\bin\openssl base64. Note: D:\folder\keystorerelease: is path to your keystorerelease
Enter keystore password: This is password when your register keystorerelease.
Then you will have a key hash: jDehABCDIQEDWAYz5Ow4sjsxLSw=
Login facebook. Access to Manage Apps. Paste key hash to your app on developers.facebook.com
Great blog post on the subject
Extracting the Key Hash from .p12 key
Great and simple hexadecimal editor for mac: HexFiend
OpenSSL should be preinstalled on mac, and here is the link for Windows version.
Link