Facebook status.get API会抛出500个HTTP状态代码

时间:2010-01-07 08:55:55

标签: rest facebook

我有一个APP通过REST服务器调用Facebook status.get方法 - restserver.php使用会话密钥方法。此应用程序适用于大多数用户,但对于一个用户,我始终收到HTTP 500状态代码。由于这没有任何特定的Facebook错误消息,我几乎不可能调试它。

任何人都面临类似的问题?这个用户帐户有什么问题?我检查了我能想到的隐私选项,看起来很好。

另外,对于同一个用户,我可以毫无问题地使用friends.get方法。

编辑:我也在Facebook论坛上尝试过,但没有用。任何指向调试/解决此问题的方向的指针也不胜感激。

编辑:我的请求的完整HTTP跟踪如下。为了清楚起见,相同的代码适用于其他用户。

REQUEST
=======================
GET /restserver.php?method=facebook.status.get&limit=1&api_key=a134957738cbd097e76bcefee86c75db&v=1.0&call_id=8cc99cec1562a71&format=JSON&session_key=747ad19e9859993f97c20355-1038949180&sig=5f597e80ad081b30c7155e9176a2aa04 HTTP/1.1
User-Agent: Pandemonium
Content-Type: application/x-www-form-urlencoded
Host: api.facebook.com


RESPONSE
=======================
HTTP/1.1 500 Internal Server Error
Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Content-type: application/json
Expires: Sat, 01 Jan 2000 00:00:00 GMT
P3P: CP="DSP LAW"
Pragma: no-cache
Set-Cookie: datr=1269479340-0545d70990e5f2db3b59176d82435f687f48a4bc69b5f11be9364; expires=Sat, 24-Mar-2012 01:09:00 GMT; path=/; domain=.facebook.com
X-Cnection: close
Date: Thu, 25 Mar 2010 01:09:32 GMT
Content-Length: 0

2 个答案:

答案 0 :(得分:1)

我遇到了同样的问题,只是将描述字段添加到我的API调用中。当我从我的字段中删除描述时,修复了服务器错误。不知道为什么它无法处理描述字段。

$events = $this->facebook->api('/me/events?fields=name,venue,privacy,location');

答案 1 :(得分:0)

用户已经批准了status.get权限吗?