Skip to content

Instantly share code, notes, and snippets.

@JosiasSena
Last active July 15, 2016 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JosiasSena/f99fc713a35b1612780d3c37db30d7c6 to your computer and use it in GitHub Desktop.
Save JosiasSena/f99fc713a35b1612780d3c37db30d7c6 to your computer and use it in GitHub Desktop.
Generate KeyHash for Facebook SDK
Generate KeyHash for Facebook SDK
1. First open a terminal (open a command prompt in windows).
2. Navigate in the terminal to the directory where your Android debug.keystore is stored.
3. Mostly it will located under “/Users/user_name/.android/” (In Windows will be C:\Documents and Settings\.android).
4. Once you are in the “.android” directory, run the following command.keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary | openssl base64

Note: “androiddebugkey” can be the username for the keystone file and “debug.keystore” can be the name of the keynote file
1. When it prompts you for a password, type android and hit Enter
2. Copy the value printed in the terminal that ends with an “=” (make sure that th2 '=' is copied too) and paste it in the Key Hash field in Facebook. Then click the Save Changes button.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment