Facebook iOS SDK 3.1:“错误:HTTP状态代码:400” [英] Facebook iOS SDK 3.1: "Error: HTTP status code: 400"

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

问题描述

我正在使用iOS6模拟器在Xcode 4.5GM上运行Facebook SDK 3.1。我在iOS设置中连接到FB,并使用新的iOS6 FBConnect UI在我的应用程序中成功FB连接。我有一个访问令牌,可以看到我的朋友,发送应用程序请求,发布到我的墙上等等。但是,每次我启动任何类型的FBURLConnection,我看到这打印到我的控制台:

 错误:HTTP状态代码:400 

当我打印出错误时,我进入了FB代码并打印了回复,我得到:

  {
body = {
error = {
code = 100;
message =(#100)'mobile_app_install'活动需要参数'归因';
type = OAuthException;
};
};
code = 400;
}

有谁知道如何解决这个问题?所有功能似乎都可以正常工作,但是我一直看到这个垃圾邮件我的控制台。

解决方案

这个错误反映了服务器上的一个错误,在3.1版本发布后不久就修复了。在这一点上,应该没有更多的失败来自这个请求。希望这有帮助!


I am running the Facebook SDK 3.1 on Xcode 4.5GM with iOS6 simulator. I connect to FB in the iOS settings and successfully FB connect in my app using the new iOS6 FBConnect UI. I have an access token, can see my friends, send app requests, post to my wall, etc. However, every time I initiate any sort of FBURLConnection is made, I see this printed to my console:

Error: HTTP status code: 400

I went into the FB code and printed the reponse when this error is printed and I get:

{
    body =     {
        error =         {
            code = 100;
            message = "(#100) The parameter 'attribution' is required for the 'mobile_app_install' activity";
            type = OAuthException;
        };
    };
    code = 400;
}

Does anyone know how to resolve this? All functionality seems to work, but I keep seeing this spam my console.

解决方案

This error reflected a bug on the server, which was fixed shortly after the 3.1 release was published. At this point there should be no more failures coming from this request. Hope this helps!

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

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