Importing with Facebook
Pro PlusEvents Manager I/O - FacebookRequires an Events Manager Pro Plus license. Compare plans
The Events Manager I/O - Facebook plugin adds a Facebook format to Events Manager I/O imports. It copies the events of a Facebook Page onto your site, and a scheduled import keeps them up to date as you add and change events on Facebook.
Read the limits before you set anything up, because Facebook decides what an app may read and the list is short.
What Facebook allows
| You want to import | Possible |
|---|---|
| Events hosted by a Facebook Page that the connected account manages | Yes |
| Events from a Page you don't manage | No |
| Events from a Facebook group | No |
| Events from a personal profile, or events you are attending or interested in | No |
| Exporting your events to Facebook | No. This add-on only imports. |
These are Facebook's rules for every app. Older versions of this add-on offered My Events, RSVP lists and groups as sources, and Facebook has since closed all of them. An import that still uses one now reports Facebook no longer allows apps to read the events of personal profiles or groups. Edit this import and choose a Page you manage instead.
Version 1.2.2 reads Page events in a different way and needs new permissions. After updating, reconnect each Facebook account on the Service Connections tab and select your Pages when Facebook asks.
Set up
Connecting needs a Facebook app of your own, created in Meta's developer tools. Meta changes those screens regularly, so the steps below say what the app needs and link to Meta's instructions.
-
Install and activate Events Manager I/O - Facebook. Events Manager I/O must be active with a valid license. The Facebook plugin has no license of its own.
-
In WordPress, go to Events I/O then Settings then Server-Side Credentials and open the Facebook box. Copy the redirect URL it shows:
https://yoursite.com/wp-admin/admin-ajax.php?action=emio_facebook&callback=authorizeThe Requested Permissions row lists what your Facebook app must be able to ask for.
-
Create an app at developers.facebook.com/apps. Meta's guide: Create an app.
-
Add Facebook Login to the app, and add the redirect URL you copied to its list of valid OAuth redirect URIs. Meta's guide: Facebook Login.
-
Make sure the app can request the permissions listed under Requested Permissions in the box:
email,pages_show_list,pages_read_engagement,pages_read_user_contentandbusiness_management. See App mode and App Review for when that needs Meta's approval. -
Copy the app's ID and secret from its basic settings into Facebook App ID and Facebook App Secret, and click Save Changes.
Your site must use HTTPS for the connection to work.
App mode and App Review
A new Facebook app starts in development mode. In that mode, only accounts that have a role on the app (its admins, developers and testers) can connect, and they can use the permissions above without any review.
For most sites that is all you need: you created the app with your own Facebook account, that account manages your Page, and it is the only one you connect.
If accounts with no role on the app must connect, the app has to be switched to live mode and the Page permissions approved by Meta through App Review. That is a longer process which Meta controls.
Connect and choose your Pages
-
Log in to Facebook in the same browser, as the account that manages your Page.
-
Go to Events I/O then Settings then Service Connections and click Connect in the Facebook panel.
-
Facebook asks which Pages to share with the app. Select every Page whose events you want to import, and approve all the permissions it lists.
Back on the settings page, the Facebook panel shows a line for the account: which Pages it can import from, and the date the connection expires.
| Message | Meaning |
|---|---|
| [Name] can import events from these Pages: ... | The Pages listed are available as import sources. |
| [Name] has not shared any Pages, so no events can be imported. | No Page was selected in Facebook's dialog. Connect again and select your Pages. |
| Facebook did not grant these permissions, which are needed to import events from your Pages: ... | A permission was declined or is not available to your app. Connect again and allow them, and check step 5 above. |
| The connection expires on [date], connect again before then to refresh it. | Facebook connections last about 60 days. |
| The connection expired on [date]. Imports from the Pages above keep working, connect again to update the list of Pages. | See below. |
When the connection expires
Facebook limits an account's connection to roughly 60 days and offers no way to renew it without you logging in again. I/O saves a separate access for each Page at the time you connect, and those keep working after the account's connection has expired. So:
- scheduled imports from a Page you selected carry on running
- to add a Page, or after changing who manages a Page, click Connect additional account (or Reconnect) and go through Facebook's dialog again
- if you changed your Facebook password or removed the app from your account, the saved access stops working and you must connect again
Create a Facebook import
-
Go to Events I/O then Import, click Add Import and choose Facebook.
-
Under Import Source, choose one of:
Source What to enter Page The Page's username, ID or address, for example https://www.facebook.com/page_username/. All of the Page's events are imported, within your filters.Event The ID or address of one event hosted by a Page you manage, for example https://www.facebook.com/events/1234567890123456/.JSON Response URL For developers: the address of a file holding a saved Graph API result. Useful for testing before your app can connect. -
Set the other options as for any import (see Import settings), click Save and Preview, and import from the Preview & Import tab.
A red note under the date filter repeats the rule: Facebook only allows importing events from Pages you manage. Events from groups, personal profiles and other Pages cannot be imported.
To keep your site following the Page, give the import a Frequency and activate it. See Run an import on a schedule.
What is imported
| From Facebook | Becomes |
|---|---|
| Name and description | Event name and description |
| Start, end and timezone | Event dates, times and timezone. An event with no end time becomes an all-day event. |
| Cover photo | The featured image, when Attachment Actions is Download featured image |
| Place: name, street, city, zip code, country and coordinates | A location, when Type is Events and Locations |
| An online event with no street address | An event with a URL location, pointing to the event's online link, or to the Facebook event when there is none |
| Category | An event category of the same name. It is assigned if that category exists on your site, or created when Create New Event Categories is Yes. |
| The event's address on Facebook | Stored for the #_EMIOEVENTURL placeholder |
| Ticket link | Stored for the #_EMIOBOOKINGSURL placeholder |
Good to know:
- An event with several dates on Facebook is imported as one event for each date.
- Canceled Facebook events are skipped.
- No bookings or tickets are created. To send visitors to Facebook or to your ticket seller, use the placeholders in your event format, as shown in Show the source's details on your site.
- Facebook places come with full addresses, so the Google API location option starts switched off.
Troubleshooting
"[Name] is not a Page that [account] manages."
The Page you entered is not among those the connected account shared. Check the spelling of the Page's username, then connect again and select that Page in Facebook's dialog. If the account doesn't manage the Page on Facebook, it can't be imported.
"Facebook only allows importing events hosted by a Page you manage."
You chose Event as the source, and the event belongs to a profile, a group or a Page the account doesn't manage.
Facebook shows an error about the redirect URI
The redirect URL saved in the app's Facebook Login settings doesn't match your site's. Copy it again from the Facebook box.
Facebook says the app is not available, or a permission can't be granted
The account you are connecting has no role on an app that is still in development mode, or the app is live and the permission has not been approved. See App mode and App Review.
"Facebook Graph returned an error: ..."
Facebook's own message follows. If it mentions an expired or invalid token, connect the account again.