Skip to content
No results
MEC Knowledgebase
  • Installation
    • Installation
    • Activation
    • Auto Update
    • Manual Update
    • Change License Domain
  • Settings
    • General
    • Archive Page
    • Slugs/Permalinks
    • Currency
    • View All
  • Single Event
    • Single Event Settings
    • How to Add Event In MEC Plugin?
    • MEC Single Sidebar
    • Custom Fields
    • View All
  • Event Modules
    • Speakers
    • Organizers
    • Locations
    • Map
    • View All
  • Booking Settings
    • Booking Module
    • Booking Elements
    • Booking Form
    • Payment Gateways
    • View All
  • Event Submission
    • General
    • Access Level
    • FES Sections
    • Required Fields
    • View All
  • Integrations
    • Mailchimp
    • Paid Memberships Pro
    • BuddyPress
    • LearnDash
    • View All
  • Notifications
    • Booking Notification
    • Booking Confirmation
    • Booking Reminder
    • Admin Notification
    • View All
  • Addons
    • Elementor Single Builder Addon
    • Ticket and Invoice Addon
    • Event Seat Addon
    • Virtual Events Addon
    • View All
  • Other
    • Appearance Settings
    • Translation
    • Knowledge
    • Troubleshooting
    • Developer
MEC Knowledgebase

  • Categories
    • Installation
      • Installation
      • Activation
      • Auto Update
      • Manual Update
      • Change License Domain
    • General Settings
      • General
      • Archive Pages
      • Slugs/Permalinks
      • Currency
      • View All
    • Single Event
      • Single Event Settings
      • MEC Single Sidebar
      • How to Add Event In MEC Plugin?
      • Custom Fields
      • View All
    • Event Modules
      • Speakers
      • Organizers
      • Locations
      • Map
      • View All
    • Booking Settings
      • Booking Module
      • Add a Booking System
      • Booking Form
      • Organizer Payment Settings
      • View All
    • Event Submission
      • General
      • Access Level
      • FES Sections
      • Required Fields
      • View All
    • MEC Integrations
      • Mailchimp
      • BuddyPress
      • LearnDash
      • Paid Memberships Pro
      • View All
    • Notifications
      • Booking Notification
      • Booking Confirmation
      • Booking Reminder
      • Admin Notification
      • View All
    • Addons
      • Elementor Single Builder Addon
      • Ticket and Invoice Addon
      • Event Seat Addon
      • Virtual Events Addon
      • View All
    • Other
      • Appearance Settings
      • Translation
      • Knowledge
      • Troubleshooting
      • Developer

Submit a Ticket
MEC Knowledgebase

Toggle
  • Step 1: Facebook Developers
  • Step 2: Create a Facebook App
  • Step 3: Temporary Access Token
  • Step 4: Upgrade Your Token
    • Extend the Expiration Time
    • Two-Months Access Toke
  • Step 5: Last Step
    • Graph API Explorer
    • Facebook Cal. Import in MEC

Knowledge

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.

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.

Step 2: Create a Facebook App

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

Import Facebook Events

On the next window, click on “Other.”

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

 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

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

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

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

Import Facebook Events

Next, click on the Web option.

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
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

Import Facebook Events

Step 3: Temporary Access Token

To create a temporary access token, go to Facebook Graph API 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

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

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

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

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

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

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, and enter it in the Debugger. Now click the Debug button.

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
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

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

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

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

Share

Report Out Dated Content

If you think the content of this page does not reflect updated information, please let us know.

Report Now
Login Submit
38 Comments
Les July 23, 2022
| |

You need to update the documentation on this addon. The Facebook Graph API interface is now completely different to what is described in your documentation.
Regards Les

1 0
0
Reply
Abraham Baker August 11, 2022
| |
Les You need to update the documentation on this addon

Hi,
Thank you very much for notifying us about this. I’ll inform the team to get it done. Thanks!

0 0
0
Reply
louiszezeran February 1, 2021
| |

Hi AgainFacebook is making us change to this “new” Facebook page and after that your import plugin does not detect any events. When I try and import it says no events found.Previously I had bee switching our page back to “old” page and then doing the import and then switching it back to “new”. However it seems now FB is not allowing us anymore to switch back to old, so we can not import any events.If this service was available we would pay 🙂
thank you
Louis

0 0
0
Reply
Sarah Wang February 3, 2021
| |
louiszezeran Hi AgainFacebook is making us change to this "new"

Hello,
Please go to support.webnus.net and there you can log in or sign up. You should sign up with the same email you have created your tickets. Also if have created your tickets using your Gmail account you can simply log in using your Gmail account. If you wanted to create a new ticket, simply head over to webnus.net/support and click on ‘Create a Ticket’ but please do remember to use the same email you created your technical support account with.
support.webnus.net

0 0
0
Reply
louiszezeran January 11, 2021
| |

Hi,I really like this feature and I can get it to work for me. One suggestion I have is could you limit the search results to only future events, or cap previous events at say ~50 events?Our page has more than 1000 past events and ~10 future events. Right now it returns a large number  because it shows past events and its easy to go over our Facebook “application request limit”. If the search limited to only future events it would be super smooth. Right now I can get it to work but it can easily trigger the limit with so many search results returned.
 
thank you, this is a great feature

2 0
0
Reply
Sarah Wang January 13, 2021
| |
louiszezeran Hi,I really like this feature and I can get it to

Hello,
I will forward your comment to our developer team and they’ll surely receive it. If it is possible they will add this feature in the upcoming updates of the Plugin.

1 0
0
Reply
louiszezeran May 6, 2021
| |
Sarah Wang Hello, I will forward your comment to our develope

I managed to change the code myself and implement a solution. In ix.php around line 4555 the while loop needs to be updated so it doesnt loop over all Fb graph pages.It would be pretty straight forward to add a drop down box “Max results returned” and have like “25, 50, 75, 100, ALL” (25 is the size of a FB graph page). My code works but now I need to manually merge it back whenever the plugin updates

0 0
0
Reply
Sarah Wang May 15, 2021
| |
louiszezeran I managed to change the code myself and implement

Hello,
Please create a ticket and provide us more info.
Go to support.webnus.net and there you can log in or sign up. You should sign up with the same email you have created your tickets. Also if have created your tickets using your Gmail account you can simply log in using your Gmail account. If you wanted to create a new ticket, simply head over to webnus.net/support and click on ‘Create a Ticket’ but please do remember to use the same email you created your technical support account with.
support.webnus.net

0 0
0
Reply
omniacreative December 15, 2020
| |

Getting the following error when trying to import events from Facebook:
The access token could not be decrypted
 
No idea how or why this happened.

0 0
0
Reply
Sarah Wang December 19, 2020
| |
omniacreative Getting the following error when trying to import

Hello,
it means that the access token you are sending to Facebook when you make the HTTP request is NOT valid.
Please check this link.
And if the issue remains contact google support.

0 0
0
Reply
jrhager84 June 22, 2020
| |

Does this automatically import newly-created FB events?

2 0
0
Reply
Sarah Wang June 24, 2020
| |
jrhager84 Does this automatically import newly-created FB ev

Hello,
Unfortunately, currently, this is not possible,
I will forward your comment to the developer team and they will process that. If it is possible they will add this feature in future plugin updates.

3 0
0
Reply
Load More

Still no luck? We can help!

If you did not find what you were looking for, please submit a ticket in our support system.

Submit a Ticket
Webnus Banner
Modern Events Calendar

Please read our Terms and Conditions and Privacy Policy.

Review us on Trustpilot

Copyright © 2023. All rights reserved. Webnus Inc.