react-nativereact-native-fbsdk

The key hash does not match any stored key hashes in facebook react-native app


I ma working on react-native latest version 60+. I am integrate the facebook login on debug mode but get the issue error:

Error: SERVER_ERROR: [code] 1349195 [message]: The key hash does not match any stored key hashes. Go to https://developers.facebook.com/docs/facebook-login/android for more information. [extra]:

I am open the new terminal and got the key hash using is command:

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

And add the bebug key hash on facebook developers. But I am get the error.


Solution

  • Try to use file in android/app/debug.keystore

    cd <your project>
    

    then

    keytool -exportcert -alias androiddebugkey -keystore android/app/debug.keystore | openssl sha1 -binary | openssl base64