简体   繁体   English

自2012年1月以来的Facebook和iOS登录错误-即使使用ShareKit或SDK

[英]Facebook & iOS Login Bug since January 2012 - Even with ShareKit or SDK

Since the last week in January we've seen most of our iOS apps, and those commercially available on the app store have problems logging in and posting to Facebook. 自一月份的最后一周以来,我们已经看到了大多数iOS应用程序,并且这些应用程序商店中的商业应用程序都无法登录并发布到Facebook。 We've also seen this with apps using ShareKit to post to FB. 在使用ShareKit发布到FB的应用程序中,我们也看到了这一点。

I've filed bugs with FB and got nowhere other than that people confirm they are seeing the same thing. 我已经向FB提交了错误,但是除了人们确认他们看到的是同一件事之外,没有其他地方。

Today I did some NSLog's of the URL requests and redirect URLs where the problem is showing itself... 今天,我做了一些NSLog的URL请求,并在出现问题的地方重定向URL ...

Could someone please try and help? 有人可以尝试帮助吗?

BTW - Please note - all of this was working perfectly before Jan 26th 2012. There has been no code changes on our side since then. 顺便说一句-请注意-所有这些在2012年1月26日之前都运行良好。此后,我们这边一直没有代码更改。

So we have an empty UIWebView and we make the login request 所以我们有一个空的UIWebView并发出登录请求

2012-02-22 12:32:28.870 iPad App[1640:15203] REQUEST = https://graph.facebook.com/oauth/authorize?client_id=135916249814649&redirect_uri=http://www.facebook.com/connect/login_success.html&scope=publish_stream,user_photos&type=user_agent&display=touch> 2012-02-22 12:32:28.870 iPad App [1640:15203]请求= https://graph.facebook.com/oauth/authorize?client_id=135916249814649&redirect_uri=http://www.facebook.com/connect/login_success html的&范围= publish_stream,user_photos&键入= USER_AGENT&显示器=触摸>

2012-02-22 12:32:32.531 iPad App[1640:15203] REQUEST = https://m.facebook.com/dialog/permissions.request?app_id=135916249814649&display=touch&next=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&type=user_agent&perms=publish_stream%2Cuser_photos&fbconnect=1> 2012-02-22 12:32:32.531 iPad App [1640:15203]请求= https://m.facebook.com/dialog/permissions.request?app_id=135916249814649&display=touch&next=http%3A%2F%2Fwww.facebook .COM%2Fconnect%2Flogin_success.html&键入= USER_AGENT&烫发= publish_stream%2Cuser_photos&fbconnect = 1>

2012-02-22 12:32:35.671 iPad App[1640:15203] REQUEST = http://m.facebook.com/login.php?app_id=135916249814649&cancel=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html%3Ferror_reason%3Duser_denied%26error%3Daccess_denied%26error_description%3DThe%2Buser%2Bdenied%2Byour%2Brequest.&fbconnect=1&next=https%3A%2F%2Fm.facebook.com%2Fdialog%2Fpermissions.request%3F_path%3Dpermissions.request%26app_id%3D135916249814649%26redirect_uri%3Dhttp%253A%252F%252Fwww.facebook.com%252Fconnect%252Flogin_success.html%26display%3Dtouch%26type%3Duser_agent%26perms%3Dpublish_stream%252Cuser_photos%26fbconnect%3D1%26from_login%3D1%26client_id%3D135916249814649&rcount=1&_rdr> [Switching to process 1640 thread 0x15203] 2012-02-22 12:32:35.671 iPad App [1640:15203]请求= http://m.facebook.com/login.php?app_id=135916249814649&cancel=http%3A%2F%2Fwww.facebook.com%2Fconnect %2Flogin_success.html%3Ferror_reason%3Duser_denied%26error%3Daccess_denied%26error_description%3DThe%2Buser%2Bdenied%2Byour%2Brequest。&fbconnect = 1&下一= HTTPS%3A%2F%2Fm.facebook.com%2Fdialog%2Fpermissions.request%3F_path%3Dpermissions .request%26app_id%3D135916249814649%26redirect_uri%3Dhttp%253A%252F%252Fwww.facebook.com%252Fconnect%252Flogin_success.html%26display%3Dtouch%26type%3Duser_agent%26perms%3Dpublish_stream%252Cuser_photos%26fbconnect%3D1%26from_login%3D1%26client_id %3D135916249814649&rcount = 1&_rdr> [切换到进程1640线程0x15203]

At this point the FB login page is shown inside the iOS UIWebView. 此时,FB登录页面显示在iOS UIWebView内部。 After correctly entering in a valid FB email address and password, the following occurs. 正确输入有效的FB电子邮件地址和密码后,将发生以下情况。

2012-02-22 12:32:56.632 iPad App[1640:15203] REQUEST = https://m.facebook.com/login.php?m=m&next=https%3A%2F%2Fm.facebook.com%2Fdialog%2Fpermissions.request%3F_path%3Dpermissions.request%26app_id%3D135916249814649%26redirect_uri%3Dhttp%253A%252F%252Fwww.facebook.com%252Fconnect%252Flogin_success.html%26display%3Dtouch%26type%3Duser_agent%26perms%3Dpublish_stream%252Cuser_photos%26fbconnect%3D1%26from_login%3D1%26client_id%3D135916249814649&refsrc=http%3A%2F%2Fm.facebook.com%2Flogin.php&refid=9> 2012-02-22 12:32:56.632 iPad App [1640:15203]请求= https://m.facebook.com/login.php?m=m&next=https%3A%2F%2Fm.facebook.com%2Fdialog %2Fpermissions.request%3F_path%3Dpermissions.request%26app_id%3D135916249814649%26redirect_uri%3Dhttp%253A%252F%252Fwww.facebook.com%252Fconnect%252Flogin_success.html%26display%3Dtouch%26type%3Duser_agent%26perms%3Dpublish_stream%252Cuser_photos%26fbconnect %3D1%26from_login%3D1%26client_id%3D135916249814649&refsrc = HTTP%3A%2F%2Fm.facebook.com%2Flogin.php&REFID = 9>

2012-02-22 12:32:59.547 iPad App[1640:15203] REQUEST = https://m.facebook.com/#!/dialog/permissions.request?_path=permissions.request&app_id=135916249814649&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&display=touch&type=user_agent&perms=publish_stream%2Cuser_photos&fbconnect=1&from_login=1&client_id=135916249814649&refid=9> 2012-02-22 12:32:59.547 iPad App [1640:15203] REQUEST = https://m.facebook.com/#!/dialog/permissions.request?_path=permissions.request&app_id=135916249814649&redirect_uri=http%3A% 2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&显示器=触摸和键入= USER_AGENT&烫发= publish_stream%2Cuser_photos&fbconnect = 1&from_login = 1&CLIENT_ID = 135916249814649&REFID = 9>

2012-02-22 12:33:02.034 iPad App[1640:15203] REQUEST = https://m.facebook.com/dialog/permissions.request?_path=permissions.request&app_id=135916249814649&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&display=touch&type=user_agent&perms=publish_stream%2Cuser_photos&fbconnect=1&from_login=1&client_id=135916249814649&refid=9> 2012-02-22 12:33:02.034 iPad App [1640:15203]请求= https://m.facebook.com/dialog/permissions.request?_path=permissions.request&app_id=135916249814649&redirect_uri=http%3A%2F%2Fwww .facebook.com%2Fconnect%2Flogin_success.html&显示器=触摸和键入= USER_AGENT&烫发= publish_stream%2Cuser_photos&fbconnect = 1&from_login = 1&CLIENT_ID = 135916249814649&REFID = 9>

And here's the error that the UIWebView returns. 这是UIWebView返回的错误。 Note - all this happens BEFORE the UIWebView is dismissed and BEFORE we even sent the POST to FB url. 注意-所有这些都在UIWebView被关闭之前发生,甚至在我们将POST发送到FB URL之前发生。

2012-02-22 12:33:02.035 iPad App[1640:15203] ERROR = Error Domain=NSURLErrorDomain Code=-999 "The operation couldn't be completed. (NSURLErrorDomain error -999.)" UserInfo=0x8a136d0 {NSErrorFailingURLKey=https://m.facebook.com/#!/dialog/permissions.request?_path=permissions.request&app_id=135916249814649&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&display=touch&type=user_agent&perms=publish_stream%2Cuser_photos&fbconnect=1&from_login=1&client_id=135916249814649&refid=9, NSErrorFailingURLStringKey=https://m.facebook.com/#!/dialog/permissions.request?_path=permissions.request&app_id=135916249814649&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&display=touch&type=user_agent&perms=publish_stream%2Cuser_photos&fbconnect=1&from_login=1&client_id=135916249814649&refid=9} 2012-02-22 12:33:02.035 iPad App [1640:15203]错误=错误域= NSURLErrorDomain代码= -999“操作无法完成。(NSURLErrorDomain错误-999。)” UserInfo = 0x8a136d0 {NSErrorFailingURLKey = https://m.facebook.com/#!/dialog/permissions.request?_path=permissions.request&app_id=135916249814649&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&display=touch&type=user_agent&perms=publish_stream %2Cuser_photos&fbconnect = 1&from_login = 1&client_id = 135916249814649&refid = 9,NSErrorFailingURLStringKey = https://m.facebook.com/#!/dialog/permissions.request?_path = permissions.request&app_id = 135916249814649&redirect_uri = http%3A%2F。 COM%2Fconnect%2Flogin_success.html&显示器=触摸和键入= USER_AGENT&烫发= publish_stream%2Cuser_photos&fbconnect = 1&from_login = 1&CLIENT_ID = 135916249814649&REFID = 9}

========= =========

So, other than "FB is broke..." which they don't seem to be doing anything about nor addressing this issue as it's been almost a month and we have shouting and complaining customers and users... what else could be going on? 因此,除了“ FB崩溃了……”之外,他们似乎无所作为,也没有解决这个问题,因为已经快一个月了,我们一直在喊叫和抱怨客户和用户...还有什么其他可能的呢?上?

Some apps (our own and 3rd party) that use share kit are working, and some not... 使用共享工具包的某些应用程序(我们自己和第三方)正在运行,而某些应用程序却没有...

Any help would be tremendously appreciated. 任何帮助将不胜感激。

Thanks 谢谢

This has been fixed. 此问题已解决。

FB changed not only some URL's but changed the way the Client Side Authentication worked and didn't bother to tell anyone. FB不仅更改了某些URL,而且更改了客户端身份验证的工作方式,并且没有告诉任何人。

If you look at the Javascript code for Client Side Authentication and emulate this in iOS it works fine. 如果您查看客户端身份验证的Javascript代码并在iOS中进行仿真,则效果很好。

(for the moment.) (目前)。

Gods I hate Facebook so much... 上帝,我非常讨厌Facebook ...

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

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