如何使用Graph API使用户订阅Facebook中的事件?
问题描述:
我希望用户在添加到此网站后,事件注册也可以在Facebook中订阅该事件.
系统已经在请求"create_event"的额外权限,在通过图形api登录后,我没有找到如何向用户订阅特定事件.我该怎么办?
I would like to users when added to this website event registration also subscribe to the event in the facebook.
The system is already asking for the "create_event" extra permission, I am not finding how to subscribe the user to a particular event after it logged in by graph api. How can I do that?
谢谢,
乔
答
event
对象页面:
It's documented in the event
object page:
// RSVP to an Event
curl -d "access_token=XXX"
https://graph.facebook.com/EVENT_ID/{attending|declined}
因此,您需要授予rsvp_event
权限.
使用php-sdk的示例:
So you need to grant the rsvp_event
permission.
Example using the php-sdk:
$facebook->api("/EVENT_ID/attending", "post", array("access_token" => "XXXXX"));