Android 无效密钥错误,Facebook SDK
我创建了一个 Android 应用程序,它使用 Facebook SDK
来制作墙贴。它在未安装本机 Facebook 应用程序的设备上运行良好,但如果安装了本机应用程序,则会抛出无效密钥错误。 我已经检查了所有设置&我的 Facebook 应用程序中的密钥和我的设备代码两次,一切都设置正确。我需要做什么才能解决这个问题?
I have created an Android application that uses Facebook SDK
to make wall posts. It works fine on devices that don't have the native Facebook App installed, but when it is, it throws an Invalid Key error.
I have checked all the settings & keys from my facebook application and my device code twice and all is setup right. What do I need to do to resolve this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是由于哈希键造成的问题。您可以从此链接找到应用程序的哈希密钥
Android 应用程序中的 Facebook 集成
并可以在 facebook 应用程序中更新它。
This is the problem because of the hash key. You ca find out the hash key of your app from this link
Facebook Integration in Android Application
and can update it in facebook app.
您收到此错误是因为您的应用程序计算的哈希值错误。在应用程序执行期间,计算出的哈希值被发送到 Facebook。如果值与您在 Facebook 开发者资料中设置的值不同 - 问题。如果您无法正确计算 - 从错误消息中读取它并将其放入 Facebook 开发者资料中。我也做了同样的。
You received this error because of wrong hash calculated on your app. During application execution calculated hash value is send to facebook. If value is different from value you set in facebook developer profile - problem. If you cannot calculate correctly - read it from error message and put it to facebook developer profile. I made the same.