The Graph API already supported creating and deleting events. Now, you can also manage invite lists and check RSVP status for events using the Graph API. All of these new features work from the /EVENT_ID connection, following standard Graph API conventions. The following are the newly introduced APIs for managing events; see the Graph APIEvent object for full details.
Managing Invite Lists
You can issue the following HTTP requests to view or modify the invite list for an event:
GET /EVENT_ID/invited/USER_ID
Check if
USER_IDis invited to the event. This returns an object withname, id,andrsvp_status('not_replied', 'unsure', 'attending',or'declined') fields. Requiresuser_eventsorfriends_eventspermission for non-public events.
POST /EVENT_ID/invited/USER_ID
Invite a user to an event. Returns
trueif the request is successful.
POST /EVENT_ID/invited?users=USER_ID1,USER_ID2,USER_ID3
Invite multiple users to an event. Returns
trueif the request is successful.
DELETE /EVENT_ID/invited/uid
Un-Invite a user from an event. Returns
trueif the request is successful. The user must be an admin of the event for this call to succeed. Requiresrsvp_eventpermission.
Querying RSVP Status
You can issue the following HTTP requests to query the RSVP status of an event:
GET /EVENT_ID/attending/USER_ID
Check if
USER_IDis attending the event (i.e. they RSVP’d yes)
GET /EVENT_ID/maybe/USER_ID
Check if
USER_IDRSVP’d ‘maybe’ for the event
GET /EVENT_ID/declined/USER_ID
Check if
USER_IDRSVP’d declined the event (i.e. they RSVP’s no)
GET /EVENT_ID/noreply/USER_ID
Check if
USER_IDhas not yet replied to the event invite
The above methods return an object with name, id, and rsvp_status ('not_replied', 'unsure', 'attending', or 'declined'). If the user is not invited to the event, the API will return an empty data array.