Generate Hash Key Android Application Facebook

  1. Scroll down to the Facebook Login section; Click Show App Info button to reveal your Android Key Hash. Enter your Key Hash at Facebook. Log into your Facebook Developer Account and select the Facebook App. Open the Settings drop-down menu and select Basic. Scroll down to find the section labeled Android. Delete the old Key Hash by clicking the X.
  2. Therefore, you want to make sure you create a Release Key Hash and add this to the Android settings for Facebook App ID. To generate a hash of your release key, run the following command on Mac or Windows substituting your release key alias and the path to your keystore.

Delete any app on the website of Facebook (developers.facebook.com) Delete the file debug.keystore under C: Users yourUserName.android; Generate a new key (by running your app again) Create a new app on developers.facebook.com and add the new hash key; Re-run your app; Succes! To authenticate the exchange of information between your app and the Facebook, you need to generate a release key hash and add this to the Android settings within your Facebook App ID. Without this, your Facebook integration may not work properly when you release your app to the store.

  • Related Questions & Answers
  • Selected Reading
AndroidApps/ApplicationsMobile Development

This example demonstrates about How to create Android Facebook Key Hash

Generating a Development Key Hash

Generate Hash Key Android Application Facebook

Mac OS:- Execute below command in terminal keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

Generate Hash Key Android Application Facebook Lite

Windows:- Execute below command in command prompt keytool -exportcert -alias androiddebugkey -keystore 'C:UsersUSERNAME.androiddebug.keystore' | 'PATH_TO_OPENSSL_LIBRARYbinopenssl' sha1 -binary | 'PATH_TO_OPENSSL_LIBRARYbinopenssl' base64

Generate Hash Key Android Application FacebookGenerate

Generate Hash Key Android Application Facebook Messenger

Generating a Release Key Hash

Generate Hash Key Android Application Facebook Android

keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64

Click here to download the project code.