自1月份的最后一周以来,我们已经看到了大多数iOS应用,并且应用商店中的商业用户在登录和发布到Facebook时遇到了问题。我们也看到了使用ShareKit发布到FB的应用程序。
我已经向FB提出了错误,除了人们确认他们看到同样的事情之外别无所求。
今天我做了一些NSLog的URL请求,并重定向了问题出现的网址......
有人可以尝试帮忙吗?
BTW - 请注意 - 所有这些在2012年1月26日之前完美运行。从那以后,我们一直没有改变代码。所以我们有一个空的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 /连接/ login_success.html&安培;范围= publish_stream,user_photos&安培;键入= USER_AGENT&安培;显示器=触摸和GT;
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&安培;键入= 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&安培;下一= 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]
此时,FB登录页面显示在iOS UIWebView中。正确输入有效的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: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&安培;显示器=触摸和键入= USER_AGENT&安培;烫发= publish_stream%2Cuser_photos&安培; fbconnect = 1&安培; from_login = 1&安培; CLIENT_ID = 135916249814649&安培; REFID = 9个
这是UIWebView返回的错误。注意 - 所有这些都在UIWebView被解雇之前发生,之后我们甚至将POST发送到FB网址。
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/#!/对话框/ 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}
======
所以,除了" FB已经破产......"他们似乎没有做任何事情,也没有解决这个问题,因为它已经差不多一个月了,而且我们已经大喊大叫并抱怨客户和用户......还有什么可以发生?
使用共享工具包的某些应用程序(我们自己和第三方)正在运行,有些则不...
非常感谢任何帮助。
由于
答案 0 :(得分:1)
这已得到修复。
FB不仅更改了某些URL,还改变了客户端身份验证的工作方式,并且没有打扰告诉任何人。
如果您查看客户端身份验证的Javascript代码并在iOS中进行模拟,则可以正常工作。
(目前。)
众神我非常讨厌Facebook ......