Graph API Version

Event

Represents a Facebook event. The /{event-id} node returns a single event.

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.

Login Review: user_events

To use the user_events permission you need to submit your app for review.

Learn more about Login Review

Reading

An event

Permissions

  • An access token of an Admin of the Event if required.

Example

Graph API Explorer
GET /v3.0/{event-id} 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}',
    '{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}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{event-id}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/{event-id}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
If you want to learn how to use the Graph API, read our Using Graph API guide.

Parameters

This endpoint doesn't have any parameters.

Fields

FieldDescription
id
numeric string

The event ID

attending_count
int32

Number of people attending the event

can_guests_invite
bool

Can guests invite friends. Requires an access token of an Admin of the Event

category
string

The category of the event

cover

Cover picture

declined_count
int32

Number of people who declined the event

description
string

Long-form description

end_time
string

End time, if one has been set

event_times
list<ChildEvent>

Array of times of a multi-instance event

guest_list_enabled
bool

Can see guest list. Requires an access token of an Admin of the Event

interested_count
int32

Number of people interested in the event

is_canceled
bool

Whether or not the event has been marked as canceled

is_draft
bool

Whether the event is in draft mode or published. Requires an access token of an Admin of the Event

is_page_owned
bool

Whether the event is created by page or not

maybe_count
int32

Number of people who maybe going to the event

name
string

Event name

noreply_count
int32

Number of people who did not reply to the event

owner

The profile that created the event

parent_group

The group the event belongs to

place

Event Place information

scheduled_publish_time
string

Time when event is scheduled to be published

start_time
string

Start time

ticket_uri
string

The link users can visit to buy a ticket to this event

ticket_uri_start_sales_time
string

Time when tickets go on sale

ticketing_privacy_uri
string

URI to seller's privacy policy for ticket purchases

ticketing_terms_uri
string

URI to seller's terms of service for ticket purchases

timezone
enum

Timezone

type
enum {private, public, group, community}

The type of the event

updated_time
datetime

Last update time (ISO 8601 formatted)

Edges

EdgeDescription

admins

Users that are admins of the event

attending

Users attending the event. Requires an access token of an Admin of the Event

comments

Comments on the event. Requires an access token of an Admin of the Event

declined

Users who declined the event invitation. Requires an access token of an Admin of the Event

interested

Users interested in the event. Requires an access token of an Admin of the Event

live_videos

Live videos published to the event. Requires an access token of an Admin of the Event

maybe

Users who replied "maybe" to the event invitation. Requires an access token of an Admin of the Event

noreply

Users who have not replied to the event invitation. Requires an access token of an Admin of the Event

photos

Photos published to the event. Requires an access token of an Admin of the Event

picture

Profile picture

roles

List of profiles having roles on the event. Requires an access token of an Admin of the Event

feed

The feed of posts (including status updates) and links published to this event's wall.

Validation Rules

ErrorDescription
100Invalid parameter
200Permissions error

Creating

Permissions

  • An access token of an Admin of the Event if required.

You can't perform this operation on this endpoint.

You may perform a POST request to the following edges from this node:

Validation Rules

ErrorDescription
100Invalid parameter
200Permissions error

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.