Omar Shamali

How to fix error: Invalid key hash. The key hash does not match.., Facebook META Login Auth App Integeration

Author: Omar Shamali
Last Modification:
Writing Date:

No matter the SDK you are using, Swift pod or Kotlin dependency or even Flutter, an issue you might face is when you click on the sign via facebook button it will show an error:

Invalid key hash. The key hash
RooN*************AU= does not match any stored
key hashes. Configure your app key hashes at
https://developers.facebook.com/apps/66xxxxx88157445/

As the photo:

facebook login error has key

To fix it, go to Developers Facebook portal, click my apps, choose your app, then go down to Android, write the key in the error, click save. (DO NOT COPY IT using new text detection from Apple devices, as it does not distinguish small L letter from stick | from capital i)

app settings android hash key facebook developer