I cannot do the following with the Graph API, so I'm trying to do it with the old REST API, but without any success... No error message, but also no invite.
$restApi = $facebook->api(array(
'method' => 'events.invite',
'eid' => $eid,
'uids' => $testuserId,
'personal_message' => 'testing',
'access_token' => $accesstoken,
));
print '<pre>' . print_r($restApi, true) . '</pre>';
Or maybe some of you know a better way...
There is a open Vote on Event Invites with Graph API at the FB Bugzilla http://bugs.developers.facebook.net/show_bug.cgi?id=10070
And I think your problem is that you need an array
of uids try:
$restApi = $facebook->api(array(
'method' => 'events.invite',
'eid' => $eid,
'uids' => array($testuserId),
'personal_message' => 'testing',
'access_token' => $accesstoken,
));
print '<pre>' . print_r($restApi, true) . '</pre>';
-michael
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.