使用Facebook API获取用户被邀请的所有事件

时间:2011-12-12 07:51:01

标签: javascript facebook facebook-graph-api

我正在尝试通过“... me / events”检索用户的活动 如文档中所述,响应仅包括用户响应的事件 有没有办法得到用户被邀请的事件并且没有回应?
感谢。

2 个答案:

答案 0 :(得分:1)

最终我用Facebook FQL制作了它:

var eventsQuery = "{'eventslist':\'SELECT eid, rsvp_status FROM event_member WHERE uid = me() AND start_time > " + Math.round(new Date().getTime() / 1000) + " ORDER BY start_time','eventsdetails':'SELECT eid, name, description, location, venue, creator, pic_square, start_time, end_time FROM event WHERE eid IN (SELECT eid FROM #eventslist) ORDER BY start_time'}";

答案 1 :(得分:0)

如果您是该活动的所有者/创建者,则可以查询偶数对象的invited连接。否则无法检索该数据。

取自Graph API Event reference

You can read the list of invitees for an event by issuing an HTTP GET to /EVENT_ID/invited:
https://graph.facebook.com/331218348435/invited