2011-09-18 61 views
0

我需要做一些簡單的身體:Facebook的批量請求:錯誤(#100)無效的參數:一個錯誤

$queries = array(array('method' => 'POST', 'relative_url' => '1665895414/apprequests', 'body'=>'message=hello')); 
$jsonstr = json_encode($queries); 
$result = $facebook->api('/?batch=' . $jsonstr, 'post'); 

和反應是:

[7] => Array 
        (
         [name] => WWW-Authenticate 
         [value] => OAuth "Facebook Platform" "invalid_request" "(#100) Invalid parameter: Body of an error/warning message. Title is: Invalid parameter" 
        ) 

      ) 

     [body] => {"error":{"message":"(#100) Invalid parameter: Body of an error\/warning message. Title is: Invalid parameter","type":"OAuthException"}} 
    ) 

任何想法?

預先感謝您。

回答

相關問題