Invalid Key Hash, The Key Hash does not match - Android FB login

微笑、不失礼 提交于 2019-12-25 07:03:40

问题


I try to generate a key hash for my production android app, I use the steps provided by the Facebook Developer documentation.

snipet from FB docs:

keytool -exportcert -alias fbreleasekey -keystore /Mobile\ Development/gastro_key | openssl sha1 -binary | openssl base64

I use the same keystore file which I have used to sign my app, it asks for a password while generating, and outputs a key hash. But When I add this to my FB dev. settings I get the same error telling me that they do not match when launching the app.

I was reading that I could simply copy and paste the key hash form the error message, but I don't think if this would last.

What could be wrong? Thanks


回答1:


keytool will generate a keyhash even if you supply wrong arguments. Check the alias, password or path of the key. If any of them are wrong it will generate a different keyhash.



来源:https://stackoverflow.com/questions/27788884/invalid-key-hash-the-key-hash-does-not-match-android-fb-login

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!