> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.webnus.net/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Import Facebook Events

  
To import Facebook Events into the Modern Events Calendar, you must be the admin of your Facebook Developer account to create an app. You can learn how to do that [here](https://developers.facebook.com/docs/development/register).

Basically, you need to create an **app**, and a **temporary access token** and then upgrade it to a permanent one. To do this, you need to follow the instructions below:

### **Step 1: Facebook Developers**

You need to sign up on the [Facebook developers’ website](https://developers.facebook.com/).

### **Step 2: Create a Facebook App**

You need to create a Facebook app if you don’t have one.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2023/11/1-11.png "1 11 - Import Facebook Events")

On the next window, click on “Other.”

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/1.png "1 - Import Facebook Events")

A window opens up, asking you to select an app type. Choose Business, and click Next at the bottom of the page.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/2.png "2 - Import Facebook Events")

In the next step, the basic information of your Web App are required as shown in the example, and once done, click on Create App.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/3.png "3 - Import Facebook Events")

On this product page, setup and configure the “**Facebook Login for Business**” Product

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/4.png "4 - Import Facebook Events")

You will then be redirected to the “Settings” menu. If you see a warning on the page titled “**Facebook Login for Business requires advanced access**“, ignore it, it will not interfere with the process.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/5-1024x350.png "5 - Import Facebook Events")

At this point, click “**Quick Start**” to complete the remaining settings.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/6-1024x364.png "6 - Import Facebook Events")

Next, click on the **Web** option.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/7.png "7 - Import Facebook Events")

In the highlighted tab, enter personal information such as your website URL. Click on **Continue**, and in the final stage, you’ll be provided a code to copy. Ignore the rest and click on **Next**.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/8.png "8 - Import Facebook Events")

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/9.png "9 - Import Facebook Events")

Click on **App Settings > Basic** on the left sidebar menu and enter your website address in the “App Domains.”

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/10.png "10 - Import Facebook Events")

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/11.png "11 - Import Facebook Events")

### **Step 3: Temporary Access Token**

To create a temporary access token, go to [Facebook Graph API Explorer](https://developers.facebook.com/tools/explorer/). Find your application in the “**Meta App**” dropdown menu. Then, from the “**User or Page**” drop-down menu, select the “**Get Page Access Token**” option.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/12.png "12 - Import Facebook Events")

**Note: Events can only be published to Facebook account pages and not to the main Facebook profile. Therefore, take note that before doing the steps above, you must create at least one page for the Facebook account, otherwise you will not be able to access the Access Token.**  

After clicking on “**Get Page Access Token**“, a pop-up window will appear asking you to confirm access to the Facebook account the App is built on. Click on the blue button.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/13-1024x472.png "13 - Import Facebook Events")

Next, you need to select the pages you want the app to have access to, from the available pages, then click the “**Continue**” button. You can select as many pages as you want and grant access to all of them.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/14-1024x460.png "14 - Import Facebook Events")

Next, a list of required permissions will be displayed. Click on the “**Save**” button and then on “**Got it**“.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/15-1024x465.png "15 - Import Facebook Events")

After that, you can see that the required permissions are added to the Permissions list and an Access Token is created.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/16-1024x513.png "16 - Import Facebook Events")

Another permission must be added to the permissions list for smooth access. To do this, click on the “**Add a Permission**” drop-down menu select “**page\_events**” from the permissions list to add it to the list, and then click on the “**Generate Access Token**” button to create a new Access Token.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/17-1024x488.png "17 - Import Facebook Events")

### **Step 4: Upgrade Your Token**

Then, you need to upgrade your token to a two-month user access token.

**Note**: A temporary user access token is a valid one-hour access token for which you must extend the expiration time.

#### **Extend the Expiration Time**

To do this, copy the code, go to the [Access Token Debugger Tool](https://developers.facebook.com/micro_site/url/?click_from_context_menu=true&country=US&destination=https%3A%2F%2Fdevelopers.facebook.com%2Ftools%2Fdebug%2Faccesstoken%2F&event_type=click&last_nav_impression_id=09VT0DGyspxsRi5us&max_percent_page_viewed=100&max_viewport_height_px=953&max_viewport_width_px=1920&orig_http_referrer=https%3A%2F%2Fdevelopers.facebook.com%2Fapps%2F473009702426957%2Fsettings%2Fbasic%2F&orig_request_uri=https%3A%2F%2Fdevelopers.facebook.com%2Fapps%2F473009702426957%2Ftasks%2Fvisit_app_dashboard%2Fcomplete%2F&region=noam&scrolled=false&session_id=14QVNZeyk188TCo7L&site=developers), and enter it in the Debugger. Now click the Debug button.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/18.png "18 - Import Facebook Events")

#### **Two-Months Access Toke**

To create a two-month access token, click on the “**Extend Access Token**” option at the bottom of the box where user/app tokens are placed.

The button will be disabled, and a new box will appear at the bottom of the page.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/19.png "19 - Import Facebook Events")

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/20.png "20 - Import Facebook Events")

Click on the “**Debug**” button (with a gray background) beside the new Token.

As mentioned earlier, this will open up a new window or tab in your browser.

Then, you will be redirected to the **Access Token Debugger**, where your temporary user access token information is stated.

Verify the information for this new token. Make sure that it is a Page Token that expires in two months and has the “**pages\_show\_list**”, “**page\_events**” and “**pages\_read\_engagement**” permissions.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/21.png "21 - Import Facebook Events")

Copy the token at the top of the page (at the left of the blue “**Debug**” button).

### ****Step 5: Last Step****

The last step is to generate the permanent user access token.

#### **Graph API Explorer**

Now, head over to **Graph API Explorer** after generating the permanent user access token and place it in the “**Access Token Field**.”

Paste the token you just copied (that expires in 2 months) in the “**Access Token**” field

And make sure all three permissions you selected earlier are displayed.

**Note that you should not click on the “Generate Access Token” button at this stage.**

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/22.png "22 - Import Facebook Events")

To access accounts, you need to change the API endpoint.To do this, in the field at the top of the page, instead of “**me?fields=id,name**” you need to put “**me?fields=accounts**” and click the “**Submit**” button. Then, the ID of all pages that you will allow access to via Access Token will be displayed.

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/23.png "23 - Import Facebook Events")

Then, you will be redirected to the verification stage, where you will ensure that the generated page access token is permanent. Go here again and click on the “Debug” button to access an extended access token.

#### **Facebook Cal. Import in MEC**

Go to **WordPress Dashboard > M. E. Calendar > Import/Export > Facebook Cal. Import**, and fill in the information.

Finally, click on the **Start** button:

![Import Facebook Events](https://webnus.net/dox/modern-events-calendar/wp-content/uploads/2019/03/24.png "24 - Import Facebook Events")