iOS 和 Facebook Graph API:授权问题不一致

发布于 2024-09-28 21:17:00 字数 783 浏览 5 评论 0原文

我正在使用适用于 iOS 的官方 FBConnect 库,并尝试让它在我的 iPad 应用程序中运行。奇怪的是:当我的朋友使用 authorize:permissions:delegate 调用登录时,一切正常:对话框要求他授权连接到 Facebook,fbDidLogin委托方法被调用,一切都很好。

然而,当我尝试登录时,对话框永远不会改变。键盘被关闭,密码字段被清除,它就在那里。该问题在模拟器和设备上都是相同的。

以下是我已检查并三次检查的内容:

  • 我的登录名和密码正确。如果我输入了错误的密码,则会出现“无效的用户名/密码”消息,但这种情况不会发生。
  • 该应用程序处于沙盒模式。
  • 应用程序 ID 正确(我的朋友可以毫无问题地登录)。

一些附加信息:

  • 原始应用程序是由我的朋友创建的。
  • 我创建了第二个 FB 应用程序并输入了新的应用程序 ID
  • 我的朋友可以使用新的应用程序 ID 登录,
  • 而我两者都无法登录。

这似乎表明我朋友的帐户有一些不同,而不是应用程序本身。

这几天我们一直在为这个问题绞尽脑汁。什么可能导致这种行为?为什么没有生成错误?

编辑:似乎有很多人受此影响 ,因此为了尝试找到答案,我添加了赏金。

I'm using the official FBConnect library for iOS and trying to get it working in my iPad app. Here's what's strange: when my friend logs in using the call to authorize:permissions:delegate, everything works fine: the dialog asks for his authorization to connect to Facebook, the fbDidLogin delegate method gets called, all is well.

However, when I try to login, the dialog never changes. The keyboard is dismissed, the password field is cleared and it just sits there. The issue is the same in both the simulator and on the device.

Here are the things I've checked and triple checked:

  • My login name and password are correct. If I do put in the wrong password, an "invalid username/password" message appears, and that isn't happening.
  • The application is not in sandbox mode.
  • The Application ID is correct (my friend can login without problems).

Some additional information:

  • Original application was created by my friend.
  • I created a second FB app and put in the new Application ID
  • My friend can login with the new Application ID
  • I can log in to neither.

This appears to suggest that there is something different about my friend's account, rather than the app itself.

We've been banging our heads together on this for a couple of days now. What could be causing this behaviour? Why isn't an error being generated?

Edit: It seems there are a lot of people affected by this, so in the interest of trying to find an answer, I've added a bounty.

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

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

发布评论

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

评论(1

此刻的回忆 2024-10-05 21:17:00

Facebook 登录似乎存在服务器端问题,如下所示:

http://github。 com/facebook/facebook-ios-sdk/issues#issue/95

人们表示,如果他们在 Facebook 上更改密码,他们随后就可以使用从 github 下载的 Facebook-iOS-SDK 登录。显然,这是一个糟糕的长期解决方案,并且对于通过 App Store 发布的应用程序来说是不可接受的。从好的方面来说,似乎也有报告称从其他平台上的应用程序登录时也出现类似的登录问题。

更新:Facebook 有一个关于此主题的错误,可以在此处查看:

http://bugs.developers。 facebook.net/show_bug.cgi?id=13199

There appears to be a server-side problem with Facebook logins as noted here:

http://github.com/facebook/facebook-ios-sdk/issues#issue/95

People have said that if they change their password on Facebook they are subsequently able to log in using the Facebook-iOS-SDK downloaded from github. Obviously that is a poor long-term solution and would be unacceptable in an app released through the App Store. On the bright side, there seem to be reports of similar login problems logging in from apps on other platforms as well.

Update: Facebook has a bug filed on this subject that can be viewed here:

http://bugs.developers.facebook.net/show_bug.cgi?id=13199

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