Graph API Version

/{event-id}/invited

The people who been invited to an event.

Reading

Graph API Explorer
GET /v20.0/{event-id}/invited HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
  // Returns a `Facebook\FacebookResponse` object
  $response = $fb->get(
    '/{event-id}/invited',
    '{access-token}'
  );
} catch(Facebook\Exceptions\FacebookResponseException $e) {
  echo 'Graph returned an error: ' . $e->getMessage();
  exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
  echo 'Facebook SDK returned an error: ' . $e->getMessage();
  exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
    "/{event-id}/invited",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{event-id}/invited",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/{event-id}/invited"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

Permissions

  • Any access token can be used to retrieve events with privacy set to OPEN.
  • A user access token with user_events permission can be used to retrieve any events that are visible to that person.
  • An app or page token can be used to retrieve any events that were created by that app or page.
  • Events may not be visible due to privacy, age restrictions, or geographic restrictions.

Fields

A list of User objects and the following additional field:

Name Description Type

rsvp_status

What the status of each users RSVP to the event is.

string

Publishing

You cannot invite people to events via the Graph API.

Deleting

You cannot delete event invites via the Graph API.