I'm trying to obtain the key hash for integrating facebook into my Android app. But all over the net I can't find the way to do it on MAC OS X
, only for Windows
.
If someone could light me with the proper way to obtain the key hash I'd really appreciate it.
Thank you!
I used following steps to generate a Key Hash for my app in facebook: (I am using Mac OSX 10.8)
Once you are in the “.android” directory, run the following command.
keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary | openssl base64
When it prompts you for a password, type android and hit Enter
Copy the value printed in the terminal that ends with an “=” and paste it in the Key Hash field in Facebook. Then click the Save Changes button.