Facebook的API在Android:黑屏,而不是身份验证身份验证、黑屏、而不是、Facebook

2023-09-04 05:11:30 作者:撒啦嘿呦

我搜索了近3个小时就这个问题的答案,以及类似的问题没有帮助,所以我最后问了一个问题:

I've searched for the past 3 hours for answers regarding this problem, and similar questions did not help, so I'm finally asking the question:

我试图使用Facebook的SDK为Android,而我得到一个空白屏幕(有它周围的一个框架,但如果你所期望的授权细节我不是得到空格):

I'm trying to use Facebook's SDK for Android, and I'm getting a "blank" screen (there's a frame around it, but where you'd expect the authorization details I'm instead getting white space):

点击登录给出了相同的页面,只有标题现在是错误有一个模糊的信息:

Clicking "Log In" gives the same page, only the title is now "Error" with a vague message:

我已经签了散列关键字是正确的。我已经改变了哈希键荒谬的东西像ASDF的日志确实说,应用程序使用 [一些关键] ,不匹配。所以我改为ASDF与 [一些关键] 和错误走了。 (此外,网页上面甚至没有不正确的哈希键的情况下出现,它只是立即结束了身份验证过程。)

I've checked that the hash key is right. I've changed the hash key to something absurd like "asdf" and the log indeed says that the application is using [some key] and isn't matching. So I replaced "asdf" with [some key] and that error went away. (Additionally, the page above doesn't even show up in the case of incorrect hash keys, it just ends the auth process immediately.)

我已经签了日期和时间设置是正确的,所以至少SSL不破相对于这一点。我没有看到任何的logcat相关的错误或警告,无论是。

I've checked that date and time settings are correct, so at least SSL isn't breaking with respect to that. I don't see any related errors or warnings in logcat, either.

我没有找到an现有的问题(没有真正的答案),以及相关的solution但似乎已经过时。 (而这是行不通的。)

I did find an existing question (no real answers) and the linked solution but that seems outdated. (And it doesn't work.)

我下面的教程FB在https://developers.facebook.com/docs/mobile/android/build/#enablesso一个字一个字,而在这一点上我不知道如何与日志中没有错误或警告调试此。有其他人看到这个错误之前?

I'm following the FB tutorial at https://developers.facebook.com/docs/mobile/android/build/#enablesso word for word, and at this point I have no idea how to debug this with no errors or warnings in the log. Has anybody else seen this bug before?

(我使用的是Android的API 15与github上的FB API的最新副本。)

(I'm using Android API 15 with the latest clone of the github for the FB API.)

推荐答案

我在使用上的Andorid钛移动开发的同样的问题,两者使用的WebView或使用SSO产生相同的结果。

I have the same issue using Titanium mobile development on andorid and both using a webview or using SSO give the same result.

编辑:的bug已经提交,请注册它还有: 的https://developers.facebook.com/bugs/385350798163367?browse=search_4f8ed4596fd900857644164

A bug has been filed so please sign up to it as well: https://developers.facebook.com/bugs/385350798163367?browse=search_4f8ed4596fd900857644164