如何使用Graph API使用户订阅Facebook中的事件? [英] How to make a user subscribe to an event in facebook using Graph API?

查看:105
本文介绍了如何使用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"));

这篇关于如何使用Graph API使用户订阅Facebook中的事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆