Android 版 Facebook API 显示空白窗口

发布于 2024-12-25 10:02:00 字数 428 浏览 1 评论 0原文

我正在使用 Facebook API 从我的 Android 应用程序向 Facebook 发布消息。我已经在各种不同的手机上进行了测试,但在某一特定手机上,Facebook API 只弹出一个空白的白色对话窗口,不会加载 FB 登录页面。

我已经在 Samsung Galaxy S、HTC Desire、HTC Sensation 上进行了测试,效果很好,但当我在 HTC Wildfire S 上尝试时,它不起作用。

LogCat 中没有弹出任何消息,并且使用调试器单步调试也没有发现任何问题。

查看 Facebook 提供的代码,我可以看到它只是一个正在创建的 WebView。有一个名为 onPageFinished(..) 的函数被调用,但 WebView 中没有任何内容。

我不太确定该如何解决这个问题。我尝试清除手机上的一些设置,但没有成功。有人有什么想法吗?

I am using the Facebook API to post messages to Facebook from my Android app. I have tested it out on various different phones, yet on one particular phone the Facebook API just pops up a blank white dialogue window that doesn't load the FB log in page.

I have tested it on the Samsung Galaxy S, the HTC Desire, HTC Sensation and it works fine - but when I try it on the HTC Wildfire S it does not work.

There are no messages popping up in LogCat and stepping through it with the debugger does not reveal any problems.

Looking through the code provided by Facebook I can see it is just a WebView which is being created. There is a function called onPageFinished(..) which gets called but there is nothing in the WebView.

I'm not really sure what to try to fix this. I've tried clearing some settings on the phone but that did not work. Does anybody have any ideas?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文