Sunday 11 July 2021

How to create Android Facebook Key Hash

  No comments

Why Facebook Need Key Hash: 

Facebook uses the key hash to authenticate interactions between your app and Facebook app. If you run apps that used the Facebook login feature then you need to add your Android development key hash to your Facebook Developer Profile.


On Windows, You will need the following:

Navigate to the Java SDK folder and open the CMD to that path and then run the below command by replacing it with their respective paths:

keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl
base64

Note: It will ask for a password and put 'android' and then you will get 26 characters string.

Secondly, There would be 90% chance that you will get this SSL error

Openssl is not recognized as an internal or external command


You need to enter the SSL path in the environment variable under the path then you above problem will get solved.



No comments :

Post a Comment

Loading...