Facebook在php sdk中显示致命错误

时间:2011-10-27 08:53:58

标签: php javascript facebook

以下错误是什么意思?为什么我会这样做。

致命错误:未捕获异常:601:分析程序错误:查询意外结束。在第1039行的base_facebook.php中抛出

我正在使用代码删除邀请,一旦用户从应用标签点击它,但这不是删除应用请求

这是代码,

   foreach ($request_ids as $request_id)
    {
     echo ("reqeust_id=".$request_id."<br>");
    $full_request_id = build_full_request_id($request_id, $user_id);  
     echo ("full_request_id=".$full_request_id."<br>");

  try {
     $delete_success = $facebook->api("/$full_request_id",'DELETE');
     if ($delete_success) {
        echo "Successfully deleted " . $full_request_id;}
     else {
       echo "Delete failed".$full_request_id;}
    }          
  catch (FacebookApiException $e) {
  echo "error";}
}

1 个答案:

答案 0 :(得分:1)

为什么这个位在引号中?

$facebook->api("/$full_request_id",'DELETE');

当然应该是:

$facebook->api($full_request_id,'DELETE');

除此之外,我发现您的代码没有任何问题。虽然,最好知道base_facebook.php中的1039行。