5

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

Harshad07
  • 608
  • 7
  • 23

2 Answers2

12

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.

Nafisha
  • 121
  • 1
  • 3
7

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

Jasper Martin
  • 180
  • 3
  • 11