Android facebook 帖子可以在模拟器上运行,但不能在设备上运行 - 如何获得正确的密钥哈希?

发布于 2024-12-21 17:19:54 字数 443 浏览 5 评论 0原文

我正在开发一个Android应用程序,除其他外,它还在用户的墙上发布一条字符串消息。该应用程序在模拟器上运行良好,每次都会在我的墙上发布消息。但每当我尝试从设备上使用它时,它就不会发布任何内容。从到目前为止的调试来看,我发现身份验证在设备上失败,而在模拟器上成功。

根据我的研究,我发现了这一点 -> Android/Facebook - invalid_key 在设备上,但不在模拟器上

据我所知,我的应用程序需要另一个密钥才能在真实设备上运行。有人可以提供一些简单的分步说明,说明如何使用 cmd 检索此密钥吗?我根据该主题的答案尝试了很多事情,但目前我不知所措..

提前谢谢您!

I am working on an android app that among other things also posts a string message in user's wall. The app works fine on the emulator posting the message on my on wall every time. But whenever I try to work it from a device it just doesn't post anything. From debugging so far I see that the authentication fails on the device, while it succeeds on emulator.

From my research I found this -> Android/Facebook - invalid_key on device, but not on emulator

So as far as I understand I need another key for my app to be able to run on a real device. Is there someone who can provide some simple, step by step instructions on how to retrieve this key using the cmd? I tried many things based on that topic's answer and I am currently at a loss..

Thank you in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

驱逐舰岛风号 2024-12-28 17:19:54

为了拥有有效的密钥,必须创建有效的密钥库。这是在您按照“导出您的申请流程”操作时创建的。然后您必须使用这个“公共”密钥库来生成 Facebook 所需的哈希值。

希望这有帮助!

In order to have a valid key to have create a valid keystore. This is created when you follow the "export your application process". Then you have to use this 'public' keystore in order to generate the required hash for the Facebook.

Hope this helps!

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