Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sign in with Facebook error code: 1349195 [ IONIC ]

I'm having a problem a few days ago with Ionic and the login with Facebook.

I have everything included, install the respective Ionic plugin and I put the APP_ID and the APP_NAME.

When I'm in the APP, and I want to log in with Facebook, Pop-up appears normally. When I give to accept for facebook to access my personal data and my e-mail this happens:

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

I did not find any way to solve it.

like image 214
Nicolas Papp Avatar asked Feb 13 '19 23:02

Nicolas Papp


2 Answers

This is how I solved this problem

Download your APK to your PC in java jdk\bin folder

in my case C:\Program Files\Java\jdk1.7.0_121\bin

Go to java jdk\bin folder and run cmd then copy the following command in your cmd

keytool -list -printcert -jarfile yourapkname.apk

Copy the SHA1 value to your clipboard like this CD:A1:EA:A3:5C:5C:68:FB:FA:0A:6B:E5:5A:72:64:DD:26:8D:44:84 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.

like image 147
Mayank R Jain Avatar answered Nov 09 '22 03:11

Mayank R Jain


I have the same problem, and I noticed that I put the wrong password when creating the hash code. the correct password is: android

like image 4
Idriss Avatar answered Nov 09 '22 03:11

Idriss