无效的密钥散列,关键散列不匹配 - Android的FB登录 [英] Invalid Key Hash, The Key Hash does not match - Android FB login
问题描述
我尝试生成一个密钥哈希我的生产Android应用程序,我用Facebook的开发者文档中提供的步骤。
I try to generate a key hash for my production android app, I use the steps provided by the Facebook Developer documentation.
snipet从FB文档:
snipet from FB docs:
keytool -exportcert -alias fbreleasekey -keystore /Mobile\ Development/gastro_key | openssl sha1 -binary | openssl base64
我用我所用签名我的应用程序相同的密钥库文件,它要求同时生成一个密码,并输出密钥散列。但是,当我将它添加到我的FB开发。设置我得到同样的错误告诉我,启动应用程序时,他们不匹配。
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
推荐答案
密钥工具将生成即使您提供错误的参数的keyhash。
检查密钥的别名,密码或路径。如果任何人都错了,它会生成一个不同的keyhash。
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.
这篇关于无效的密钥散列,关键散列不匹配 - Android的FB登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!