When you want to integrate Facebook login to your android application it will ask you to enter Development Hash key and Release Hash key. In this tutorial I will show you how to create development hash key through the command prompt Step by step.
I am writing this tutorial because I myself has struggled a lot for getting this hash key procedure. So, I am writing here my procedure of getting hash code.
Step 1 : Download OpenSSL for windows if yours is 32 Bit you have to download 32 bit version here I have provided the link for 64 Bit version. Download as a zip file or rar file.
Step 2 : Extract the files into the folder named OpenSSL and put that folder into your C:\ Drive.
Step 3 : Copy this path C:\Program Files\java\jdk1.8.0_31\bin\
Step 4 : Open command prompt in windows and paste this cd C:\Program Files\java\jdk1.8.0_31\bin\
Step 5 : Now copy and paste the following code
keytool -exportcert -alias androiddebugkey -keystore "C:\\Users\\YourName\\.android\\debug.keystore" | "C:\\OpenSSL\\bin\\openssl" sha1 -binary |"C:\\OpenSSL\bin\\openssl" base64
That's it now you will be prompted to enter the text to change it into hash code you can enter anything either your name or your app name etc.
You will get the code now copy that and past it in your facebook developer hash key text box.
This is it guys, I hope you pretty much understood. If you face any problem comment below or mail me at ething4pc@gmail.com I will definitely answer your queries.
No comments:
Post a Comment