Issue
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.
Solution
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.
Answered By - Mayank R Jain
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.