Facebook SDK 3.1-错误:HTTP状态码:400 [英] Facebook SDK 3.1 - Error: HTTP status code: 400

查看:208
本文介绍了Facebook SDK 3.1-错误:HTTP状态码:400的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我收到以下错误(错误:HTTP状态代码:400"),因为截至昨天(10/9),我已更新到facebook SDK 3.1.但是就与Facebook的连接而言,所有功能都是完全正常的,每次我在应用程序上启动Facebook会话时,我只会看到此错误消息.我看到一些人对此发表评论,但是我不能从他们那里确定这是否是一个真正的问题.谁能确切知道这是否会引起问题?如果是这样,该如何解决?谢谢!

I am getting the following error ("Error: HTTP status code: 400") now that I have updated to facebook SDK 3.1 as of yesterday, 10/9. But everything is completely functional as far as connecting with facebook, I just see this error message every time I start a facebook session on my app. I have seen a few people commenting on this, but I can't determine from them if this is going to be a real problem or not. Does anyone know definitively if this is going to cause a problem? And if so, how to fix it? Thanks!

推荐答案

最初的问题在3.1 SDK发行后由Facebook解决.

The original issue was resolved by Facebook just after the 3.1 SDK was released.

但是有些仍然存在问题,如果您遇到此问题,则应检查登录流程,并查看facebooks示例,然后,如果仍然有问题,则可能是解决方案的提示.

But some are still having issues, if you have this issue you should check the login flow, and look at facebooks examples, after that if you are still having issues this could be a hint to a solution.

我没有获得我的信息的授权时,遇到了400错误.奇怪的是,我获得了accessToken甚至是有效的登录名(这是因为我根据Scrumptious示例在帮助下构造了代码,并在Session状态打开时进行了有效的登录).

I got the 400 error when I do not have authorization to get to my information. The strange thing is that I get an accessToken and even a valid login (this is because I structured my code, with the help according to Scrumptious example and did a valid login when the Session state is open).

FBSessionState仅打开一秒钟,然后更改为关闭,并显示400错误.

The FBSessionState is only opened for like a second and then it changes to closed with an 400 Error.

使用iOS6本机登录,当您询问权限警报时,您会收到权限警报,然后电话会记住该选择24小时.但是,如果用户登录到Facebook主页,然后删除了该应用程序的权限,则手机将无法识别该用户已删除了24小时的权限,因为它会记住该手机已经提出要求并批准了该权限( (在24小时窗口中),无论是否重新安装该应用程序.

With iOS6 native login you get the permission alert when you ask for it, and then the phone remember that choice for 24 hours. But if the user logs in to the facebook home-page and then deletes permission for the application the phone will not recognize that the user has deleted the permissions for 24 hours, since it remembers the that the phone has already asked it and approved it (in the 24-hour window), regardless if you re-install the app or not.

经过几个小时的调试后,我发现了这一点,因为我允许从iOS的设置"中启用该应用程序,但我无法发布,并且由于我从facebook隐私中删除了该权限,并且该警报也不会再次显示除了通过调试工具手动授予我权限或等待24小时之外,我什么也不能做,因此我可以再次接受Facebook权限警报.

I found this out after some hours of debugging, since I allowed the application from the Settings in iOS, but I could not post, and since I deleted the permission from the facebook privacy, and the alert would not show again there was nothing I could do but to manually give me permissions via a debug tool or wait 24 hours so I could accept the facebook-permission alert again.

这篇关于Facebook SDK 3.1-错误:HTTP状态码:400的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆