我收到错误:致命错误:未捕获的 OAuthException:(#200)
当我尝试通过应用程序邀请人们参加活动时。
我的步骤: 1. 获得具有权限的长期令牌:create_event create_note publish_actions publish_stream rsvp_event user_events 2. 获取尚未被邀请参加活动的朋友的用户 ID。3. 每个邀请分成 50 人并发送。
邀请码:
$friends = $facebook->api(array(
'method' => 'fql.query',
'query' => "SELECT uid,name FROM user WHERE uid IN
(SELECT uid1 FROM friend WHERE uid2=me()) AND NOT
(uid IN (SELECT uid FROM event_member where eid = '$eventid'))"));
foreach ($friends as $value)
{
if (!isset($allids))
{
$allids = $value['uid'];
}
else
{
$allids .= ',' . $value['uid'];
}
$count++;
$invitedusers++;
if ($count > 49)
{
//$splitinvite = $facebook->api($eventid . '/invited?users=' . $allids, 'POST');
unset($allids);
$count = 0;
}
}
$facebook->api($eventid . '/invited?users=' . $allids, 'POST');
我已经分离了用户 ID,以确保它们以 Userid_1、Userid_2、Userid_3 格式正确设置我使用图形令牌调试器检查了令牌,并且所有权限都设置正确。任何人的想法?