Flutter_facebook_login: Error during login

Created on 21 Apr 2019  路  6Comments  路  Source: roughike/flutter_facebook_login

Hello, im using the example code that comes with the flutter_facebook_login.

It builds fine on Windows using Visual Studio Code, running on ANDROID

It displays the Login button, when i press it then it gives error that something went wrong, .... error performing query while running on my android phone device

I didnt even get a chance to log in, soon as i click the button it gives that error right away.

Do i need some code from facebook, maybe app ID or something else?

Any idea what can cause that?

Most helpful comment

I had a lot of headache about this,
this is how I solved:

  1. Get your SHA-1 fingerprint, from Android Studio the easiest way is to create a new project with a Google Maps Activity. Once created it will start with a opened file "google_maps_api.xml" where you can find your SHA-1 certificate fingerprint (comment block).
    source: https://stackoverflow.com/questions/27609442/how-to-get-the-sha-1-fingerprint-certificate-in-android-studio-for-debug-mode

  2. Copy the SHA1 value and and open 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 the facebook app.
    source: https://stackoverflow.com/questions/54680955/sign-in-with-facebook-error-code-1349195-ionic

Hope it helps.

All 6 comments

Fixed it, i created an app ID on facebook and it logged me in..... sort of, it logged me in, displayed my photo, then when i clicked continue, it then gave a SERVER_ERROR 1349195 The key hash does not match any stored key hashes

I have the same problem. They solved it?

same here!

Solved! check this #32
Get the key hash and save it in your facebook developer console

I had a lot of headache about this,
this is how I solved:

  1. Get your SHA-1 fingerprint, from Android Studio the easiest way is to create a new project with a Google Maps Activity. Once created it will start with a opened file "google_maps_api.xml" where you can find your SHA-1 certificate fingerprint (comment block).
    source: https://stackoverflow.com/questions/27609442/how-to-get-the-sha-1-fingerprint-certificate-in-android-studio-for-debug-mode

  2. Copy the SHA1 value and and open 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 the facebook app.
    source: https://stackoverflow.com/questions/54680955/sign-in-with-facebook-error-code-1349195-ionic

Hope it helps.

@Mapk26 Work for me! Thx

Was this page helpful?
0 / 5 - 0 ratings