简体   繁体   English

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

[英]iOS and Facebook Graph API: Inconsistent authorize issues

I'm using the official FBConnect library for iOS and trying to get it working in my iPad app. 我正在使用iOS的官方FBConnect库,并尝试使其在iPad应用程序中运行。 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. 奇怪的是:当我的朋友使用调用进行登录以进行authorize:permissions:delegate ,一切正常:对话框要求他授权连接到Facebook, fbDidLogin委托方法被调用,一切都很好。

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). 应用程序ID是正确的(我的朋友可以正常登录)。

Some additional information: 一些其他信息:

  • Original application was created by my friend. 原始应用程序是由我的朋友创建的。
  • I created a second FB app and put in the new Application ID 我创建了第二个FB应用,并放入了新的应用ID
  • My friend can login with the new Application ID 我的朋友可以使用新的应用程序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. 编辑:似乎有很多人受此影响 ,因此为了尝试寻找答案,我添加了赏金。

There appears to be a server-side problem with Facebook logins as noted here: 如此处所述,Facebook登录似乎在服务器端出现问题:

http://github.com/facebook/facebook-ios-sdk/issues#issue/95 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. 人们说过,如果他们在Facebook上更改密码,他们随后将能够使用从github下载的Facebook-iOS-SDK登录。 Obviously that is a poor long-term solution and would be unacceptable in an app released through the App Store. 显然,这是一个糟糕的长期解决方案,在通过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: 更新:Facebook有一个关于此主题的错误,可以在这里查看:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM