使用 Facebook Graph API 获取用户的所有事件

Getting all events for a user using Facebook Graph API

像这样调用 api,我只得到用户正在参加的事件。

        FBRequestConnection.startWithGraphPath("/me/events")

根据文档,这是有道理的 (https://developers.facebook.com/docs/graph-api/reference/user/)

Events for this person. By default this does not include events the person has declined or not replied to

但我如何才能将此人的事件包括在内"has declined or not replied to"?

据我所知,图表 API 中没有终点。虽然 FQL 是可能的,但如果您的应用是 v2.1 或更高版本,您就不能再使用 FQL。

我不确定你是否可以在一个电话中完成,但你可以在三个电话中完成:

/me/events (gets "attending" and "maybe" events)
/me/events/declined (gets "declined" events)
/me/events/not_replied (gets "not_replied" events)

我仍在尝试寻找一个选项来一次调用,但这是我目前使用的后备方案。