我正在看二手汽车零件的2页。我想在最后一篇文章排序的单个调用中调用两个页面提要。我正在尝试这段代码,但它不起作用......
/* PHP SDK v4.0.0 */
/* make the API call */
$request = new FacebookRequest(
$sess,
'GET',
//'/89641180016/feed' //single call works!
'/89641180016/feed','/93811111500/feed' //multiple call fails
);
$response = $request->execute();
$graphObject = $response->getGraphObject()->AsArray();
/* handle the result */
答案 0 :(得分:0)
查看FacebookRequest课程,我认为每个FacebookRequest只能调用一个路径。
也许尝试将您的来电换成foreach
?
答案 1 :(得分:0)
您可以使用/feed?ids=89641180016,93811111500
(请参阅doc:Making Multiple Requests)