我正在嘗試使用批量API讓我的用戶能夠邀請所有頁面粉絲參加活動。 這是我試圖使用批處理API的第一個問題,我也遇到了一些麻煩。這裏是我沒有使用該批次的代碼:邀請超過50個朋友參與批量API活動PHP
$result = $facebookObj->api(array(
'method' => 'fql.query',
'query' => 'select uid,name from user where uid in (select uid from page_fan where uid in (select uid2 from friend where uid1 = me()) and page_id = '.$fbPage.')'
));
foreach ($result as $value) {
$ret_val = $facebookObj->api($event_fbID . "/invited/" . $value['uid'],'POST');
if($ret_val) {
// Success
$numInvited++;
}
}
如何將此代碼調整爲批API以查詢超過50個頁面粉絲?
感謝
究竟是什麼「煩惱」你有?心理調試是一項艱鉅的工作;) – Lix
請包括您的批處理PHP代碼,以便我們看到您的問題。 –