Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting hash key of 20 character instead 28 for facebook integration with android

i am integrating my android app with facebook . i am following this link but i am getting 20 character hashkey so it makes trouble . I am using following command on cmd

keytool -exportcert -alias androiddebugkey -keystore "C:\Users\mahi\.android\debug.keystore" | "C:\OpenSSL\bin\openssl" sha1 -binary | "C:\OpenSSL\bin\openssl" base64

enter image description here

like image 868
Harshad07 Avatar asked Dec 22 '15 12:12

Harshad07


2 Answers

Instetad of SHA1, type SHA. You will get 28 char long hashcode for fb. I was having the same issue, but this way I could resolved.

like image 172
Nafisha Avatar answered Sep 25 '22 20:09

Nafisha


I'm using Windows Powershell and it is generating a 24-length key. Switched back to old cmd. Thanks to this answer: https://stackoverflow.com/a/41677624/9376804

like image 45
Jasper Martin Avatar answered Sep 24 '22 20:09

Jasper Martin