Facebook 密钥哈希不匹配任何存储的密钥哈希 [英] Facebook key hash does not match any stored key hashes

查看:36
本文介绍了Facebook 密钥哈希不匹配任何存储的密钥哈希的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的在使用 Facebook 哈希键时遇到了问题.我在我的 Eclipse 中生成了它.. 证明:

I'm really having troubles with the Facebook hash key. I generated it in my Eclipse.. proof:

然后我去了

最后,我在 Facebook 开发人员的设置中设置了我的哈希键:

And finally I've set my hashkey at the settings of Facebook developers:

但是不管我做什么,我总是收到相同的错误日志:密钥哈希 B5dWUEYfZJL/...........jyA= 不匹配任何存储的密钥哈希"

But no whatter I do I keep getting the same error log: "Key hash B5dWUEYfZJL/...........jyA= does not match any stored key hashes"

有谁知道我做错了什么或者我如何解决这个问题?如果我在自己的应用程序中使用 HelloFacebookSample 中的 id 和名称,一切正常.所以它与我最有可能在某处设置的密钥散列、ID 或名称有关..

Does anybody know what I did wrong or how I can fix this problem? If I used the id and name from the HelloFacebookSample inside my own app everything works. So it HAS to do with the key hash, id or name I've set somewhere most likely..

谢谢,延德

推荐答案

如果您的登录在没有安装 facebook 应用程序的情况下正常工作,并且在安装 facebook 应用程序时由于错误哈希键不匹配"而无法正常工作,请执行以下步骤

If your login is working without installing facebook app and not working when facebook app is installed due to error "hash key has not match" then do following steps

1 ) 启动您的应用程序并尝试使用 facebook 登录.将打开一个对话框并告诉您:尚未在 facebook 开发者控制台中找到密钥并显示哈希密钥.

1 ) Launch your app and try to log in with facebook. A dialog will open and tell you: "the key has not been found in the facebook developer console and also show the hash key.

2 ) 记下哈希键.

3 ) 将其放入您首先生成 api 密钥的 facebook 开发人员控制台,并使用 new 删除哈希密钥并保存.现在你完成了.任何下载您的应用并使用较早使用的密钥库发布的应用的人都可以登录 Facebook.

3 ) Put it into your facebook developer console where you first generated your api key and remove the hash key with new and save. Now you are done. Anyone that downloads your app, published with earlier used keystore can log into facebook.

这篇关于Facebook 密钥哈希不匹配任何存储的密钥哈希的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆