Android 无效密钥错误,Facebook SDK

发布于 2024-12-20 09:16:36 字数 195 浏览 7 评论 0原文

我创建了一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

看海 2024-12-27 09:16:37

这是由于哈希键造成的问题。您可以从此链接找到应用程序的哈希密钥

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.

始终不够 2024-12-27 09:16:36

您收到此错误是因为您的应用程序计算的哈希值错误。在应用程序执行期间,计算出的哈希值被发送到 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文