1. Social Logins
  2. Facebook Key Hashes

Facebook Key Hashes

Getting Key Hash for Facebook

  1. Download and install latest JDK from here. If you have build an Android App previously, you should already have this JDK installed.
  2. 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.


This article is separated into multiple sections as follow: