1

I have an app deployed on Goole's Play Store that uses Facebook SSO login. The main problem is that I haven't checked the keyhash before submitting it and I don't have the computer I made that build with anymore (therefore no debug.keystore, but I still have the certificate I signed the apk with).

I tried to unzip the APK, go to META-INF and extract the file CERT.RSA... from there I used the command: keytool -printcert -file CERT.RSA | openssl sha1 -binary | openssl base64

but the output is wrong (it's a keyhash I already have in the facebook app settings).

I would like to avoid making an update just for that problem, considering I could solve it just setting the right keyhash in the facebook app settings.

valeriodidonato
  • 129
  • 1
  • 1
  • 9

2 Answers2

2

ok, the problem was the alias inside the certificate. Found the right one to use, everything worked as a charm.

The final command line was:

keytool -exportcert -alias user_alias -keystore dev_certificate | openssl sha1 -binary | openssl base64
valeriodidonato
  • 129
  • 1
  • 1
  • 9
  • What user_alias u used ? Cause I have propably similar problem and my fb login with ganareted hash_key doesn't work, wrong user_alias can be the source of this issue? my question http://stackoverflow.com/questions/22580060/how-properly-generate-fb-keyhash-to-make-login-works-on-apk-file – MyWay Mar 23 '14 at 12:09
0

If you log into developer.facebook.com and view your apps (Click on "Apps" on the top)

Select the app you want to find the Hash-Key for (From the left)

Click on "Edit Settings" in the settings panel.

Scroll down until you see the "Native Android App" panel, in there you should find the "Android Key Hash"

I hope this solves your problem.

Ushal Naidoo
  • 2,704
  • 1
  • 24
  • 37