Table of Contents

Getting Facebook Key Hash

← All Topics



To follow this tutorial you must have generated your keystore, if you have not already done so, follow these steps:


Download the last openSSL version from this link:


  1. To generate a hash of your release key, run the following command on Mac or Windows substituting your release key alias, the path of your keystore, and the path of your openssl file:
    keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore  YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64. Example: Locate your keytool file, the keytool file is normally found inside your Android Studio installation (Android Studio -> jre -> bin -> keytool.exe). My keystore alias is: myalias, My keystore path is: D:\folder\mykeystore.jks, My openssl path is: D:\openssl-0.9.8k_X64\bin\openssl.exe. So my command should be:keytool -exportcert -alias myalias -keystore D:\folder\mykeystore.jks | D:\openssl-0.9.8k_X64\bin\openssl.exe sha1 -binary | D:\openssl-0.9.8k_X64\bin\openssl.exe base64
  2. Inside your terminal, go to your keytool path (cd C:\Program Files\Android Studio\jre\bin) and run the above command.
  3. The resulting code is your Key Hash.
Send this to a friend