Getting Key Hash for Facebook
- Download and install latest JDK from here. If you have build an Android App previously, you should already have this JDK installed.
- Once JDK is installed, run keytool with the following command.
For Mac/Linux
keytool -exportcert -alias easysocial -keystore /path/to/file.jks | openssl sha1 -binary | openssl base64
For Windows
keytool -exportcert -alias easysocial -keystore /path/to/file.jks | PATH_TO_OPENSSL_LIBRARY\bin\openssl sha1 -binary | PATH_TO_OPENSSL_LIBRARY\bin\openssl base64
Notice for Windows Users
- Before running the keytool command, you need to download OpenSSL- After downloading the OpenSSL you can unzip it in your C:/ directory and run command (Before running please check the file path once)
Properties are defined as below:
alias
Same alias used for your Android Keystore file.
keystore
Path of your Android Keystore file that was previously generated.