Facebook provides a very important resource to its users to let them know about any upcoming occasion on Facebook. This resource is known as Facebook Events and how it works is by linking the calendar dates with the Events that are created on Facebook, so that when the Event is due, the concerned persons are notified.
Facebook Events can be created by anyone on Facebook to invite friends, group members or followers of a page, based on the kind of event that is created. Facebook Events can thus be divided into two categories – one that is open to anyone and the other that is private and is open for chosen few.
Facebook also provides an "RSVP" list about the Event to all the invitees based on their response to the Event. All The responses are categorized and captured on the basis of invitees "attending," "not attending," "may be attending," or "hasn't responded" the event.
So, when an invitee’s response to an Event is RSVP-ed as "attending", the same will be displayed to their friends via news feed, thus notifying about the invitee’s confirmation. Also the invitees are reminded about the Event they have expressed interest in, through notifications, once Event date approaches, so that they don’t miss out on the event.
Because of this unique feature of Facebook Events which let the users share details about an upcoming event or occasion easily to millions of people in a short amount of time, it is imperative for people to use such an useful resource like Facebook Events elsewhere too, such as on their websites. This is where Facebook Access Token is required.
In order to use Event data or any other data from Facebook, Access Token is required. Like for example, in order to use Facebook Page Events data, a page Access Token is required if you want to display high quality images of Event, its description, past Events, location data of Event on map, syncing features etc..
Once you have the Access Token, you can use the Event data, customize it and even embed it on your website directly or through various third party SDKs available online.
However, one important point worth remembering here is that you can get Access Token from Facebook, only for the Facebook page which you have admin rights. That is, you should be the administrator for the Facebook Page, whose Event data you want to call.
To get a Facebook Access Token to display Facebook Events, simply follow the below steps-
Create a Facebook Developer Account-
The first step to get Facebook Access Token is to create a Facebook Developer account. Facebook only allows individuals to register as Developers.
Creating a Facebook based App -
Getting a Page Access Token-
Go through the remaining steps. Once completed, you would be provided with a temporary Access Token (it will last for 1 hour approximately).
Copy this token value and visit plugin’s Settings page and paste it in the field labeled "Facebook Access Token". You are good to go.
If you are getting any errors regarding approval, to troubleshoot you can do the following things;
Further, you can also read documentation at https://developers.facebook.com/docs/apps/review to understand the process of the same.
Also, it is worth noting that if using any third party "Custom Feed" plugin, the steps may differ, unless you want to display Events. But if you want to display Events from Facebook page, above steps can easily get you an Access Token.
Since above steps can get you only a temporary Facebook Access Token, which will keep on expiring after certain time period, it is important to extend an existing token, so that it never expires.
Further reading on the process to extend the validity of the Access Token, check How to Create long lived Facebook Access Token that never expire?