Getting all my events via Facebook iOS SDK

前端 未结 5 1327
囚心锁ツ
囚心锁ツ 2021-02-19 07:13

In my iOS app, I get an access token using the following code:

    [self.facebook authorize:[NSArray arrayWithObjects:@\"user_events\",
@\"friends_events\",  nil         


        
5条回答
  •  北海茫月
    2021-02-19 07:53

    The request

    /me/events

    only gives you the events a user is (maybe) planning to attend. The response doesn't include events which the user has been invited to (but not responded to), or declined.

    There are other requests that may be of help:

    You can check if a user has been invited to an event like so:

    /EVENT_ID/invited/USER_ID

    RSVP status can be checked by event:

    /EVENT_ID/attending

    /EVENT_ID/maybe

    /EVENT_ID/declined

    /EVENT_ID/invited

    where each request returns a list of users with the queried RSVP status.

提交回复
热议问题