好吧,我现在被困住了。每次我尝试邀请用户加入群组时都会收到此错误。致命错误:未捕获的 OAuthException: (#200) 在第 1133 行的 /home/xxx/public_html/konkurrence/src/base_facebook.php 中抛出
$id is ex: 531559617,578399497,597219863,611583892,615217497,615862203,622354685,641989790,642609101,664099777,684181267,685978537,688529379,702356299,731199845,735261307,747864007,753442688,757574019,757617533,773399820,805573671,824600788 ,827164118,899525726
我的范围是:read_friendlists、user_likes、create_event、user_events、friends_events、offline_access
PS:Ofcouse facebook 和 $eventid 已设置等。
if ( isset ( $_POST['friends'] ) ) :
foreach ( $_GET as $l => $fis ) {
$e.= $l . "=".$fis."&";
}
$i=0;
foreach ( $_POST['friends'] as $ids ) {
if ( $i>48 && $user == $ids) :
else:
$id.=$ids . ",";
$i=$i+1;
endif;
}
$id = substr_replace($id ,"",-1);
echo $facebook->api($event_id . "/invited",'POST', array("users" => $id));
endif;