Facebook Auth Invalid Hash Key on Flutter?

I'm currently developing an app in Flutter and trying to authenticate it with the flutter_login_facebook package and appearing to have the same problem like in this thread:

Android Facebook integration with invalid key hash

except unfortunately the answers are for android only projects or irrelavent due to the date.

I searched all over for a solution with no success and would be grateful for any help, thanks!

1 answer

  • answered 2022-05-04 10:16 suzan

    Seems like you have yet to add the key hashes for the facebook app you have created.

    You should add the hash key for the Android in the facebook app dashboard -> settings -> basic -> Android (presuming you have already created an app).

    To generate the key hash,

    // Build Debug
    keytool -exportcert -alias mstoreapp -keystore android/app/mstoreapp.keystore | openssl sha1 -binary | openssl base64
    // Build Release
    keytool -exportcert -alias key -keystore certs/key.jks| openssl sha1 -binary | openssl base64

    Please follow this tutorial for detailed steps

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum