-
Notifications
You must be signed in to change notification settings - Fork 903
The Key Hash Does not match any store key hashes. #424
Comments
I have the same problem, without the app installed, it works, when the facebook app is installed, I get the invalid key hash, however, the hash that gives on the error, is on facebook app. Help plz |
Make sure you get the hash of the signed key used for generated APK. MacOS:
Real example, assuming that keystore is placed under android/app:
This will generate a hash key that must be placed into app's profile:
|
any solution for this??? |
Here is the same, anyone has any solution?? |
I have the same problem |
For me it was redirecting to the FB app and it was displaying a hash that I never generated. I copied that hash into the FB console and it seemed to work after that. Not quite sure why. |
This worked for me. Copy the APK to your PC in Program Files\java\jdkX.X.X_XXX\bin folder In my case it's C:\Program Files\Java\jdk1.8.0_191\bin Open CMD in this directory and type the following
Copy the SHA1 value to your clipboard It will be something like this: Then go to http://tomeko.net/online_tools/hex_to_base64.php to convert your SHA1 value to base64. This is what Facebook requires get the generated hash " ********************= " and copy the key hash to your Facebook developers app settings. |
I used the openssl version "openssl-0.9.8e_X64.zip" in windows, the others generate false hashes |
Anyone has any solution? |
Kotlin:
Java:
and call your function like this
|
Solved this for myself, I carefully added the correct hash of my release key but my app keep complaining about key hash does not match any store key hashes and showed a hash which was different from my release key hash. You have to download the derived apk and get the SHA1 hash using I don't know why this isn't mentioned in facebook dev console and their docs. |
Check if your "App Signing by Google Play" is enabled. Then copy SHA1 from there and go to http://tomeko.net/online_tools/hex_to_base64.php to get the key hash. |
Recently found this Hasher App which helps in extracting keyhash from sha1 (from google play store console) and vice-versa |
This solved my problem :) |
@UzairAhmedSiddiqui unfortunately i followed these steps but didn't work with me Did you figure any other solution?? |
@MayarAhmed I'm afraid not, but if the error is the same then it should work, the problem simply is that the hash of the signed apk and the one set on facebook dev console do not match. |
this step solved it for me Copy the File debug.keystore from .android folder in my case (C:\Users\SYSTEM.android) and paste into JDK bin Folder in my case (C:\Program Files\Java\jdk1.6.0_05\bin) and then excute cmd keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%.android\debug.keystore | openssl sha1 -binary | openssl base64 which gives me the same hash code in the error and then it solved |
Thank you this is helped me. |
This fixed it for me Specifically expo/expo#2079 (comment) |
#424 (comment) |
what possible location can be for OSX ? |
I met the same issue while I did generate a SHA1 key before. I solved it now thanks to the link you provide. Thank you very much ! |
Somehow when I am running it in windows powershell the generated code has the wrong format but when I run it in cmd the format is valid, hopefully it helps someone. |
any solution ? |
|
Hi there, same issue here. But first, I wonder why the complaint invalid key hash is different from the one I have. And second, where I can get the apk file? During development, is it required that we need to register the app with Google Play? |
Use the above method to generate the key.(Just create a debug apk and run the command pointing to it.) Add the Key Hash Here - https://developers.facebook.com/docs/facebook-login/android/v2.2
|
Just solved my issue by pointing to debug keystore in the project itself "PATH_TO_YOUR_PROJECT/android/app/debug.keystore" |
If you use Google's new android upload key method then your apk gets re-signed after it uploads. The keystore you use to upload is not the actual keystore google signs it with. You have to go into your Google play release page and download the resigned apk before doing the above steps by OVI. They called it derived APK. |
This works on Mac. Thank you!!! |
You are a saviour mate, this worked for me. Kudos! |
eu quero te agradecer mil milhões <3 |
I tried to generate hash by using
>keytool -exportcert -alias payoja -keystore "C:\Users\Epsum Labs\Desktop\PAYOJA\android\app\payoja.keystore" | "C:\Users\Epsum Labs\Desktop\openssl\bin\openssl" sha1 -binary | "C:\Users\Epsum Labs\Desktop\openssl\bin\openssl" base64
I am unable to login neither in debug nor in release mode.
The text was updated successfully, but these errors were encountered: