EME Sync Facebook Events

Description

A simple plugin to sync Facebook events to the Events Made Easy plugin, based on the old Sync Facebook Events plugin.
Uses the Facebook PHP API, which requires at least PHP 5.4 to work.

Get The Events Made Easy plugin:
https://wordpress.org/extend/plugins/events-made-easy/

Screenshots

  • EME Sync Facebook Events Configuration

Installation

  1. Download the plugin archive and expand it
  2. Upload the eme-sync-facebook-events folder to your /wp-content/plugins/ directory
  3. Go to the plugins page and click ‘Activate’ for EME Sync FB Events
  4. Navigate to the Settings section within WordPress and enter your Facebook App ID, App Secret & Page names or IDs you want to import.
  5. Ensure the Events Made Easy plugin is installed and configured – https://wordpress.org/extend/plugins/events-made-easy/
  6. Press ‘Update’ to synchronize your current Facebook events for display within Events Made Easy.
  7. Synchronization will continue to occur on the schedule you set. You can always update manually if/when needed.

FAQ

Q: What is the Facebook App ID and App Secret, and why are they required?

A: The Facebook App ID and App Secret are required by Facebook to access data via the Facebook graph API.
To signup for a developer account or learn more see – http://developers.facebook.com/docs/guides/canvas/

Q: How do I find the Facebook ID of the page for which I wish to synchronize events?

A: Goto the page you’re interested in – ex. https://www.facebook.com/webtrends
Copy the URL and replace ‘www’ with ‘graph’ – ex. https://graph.facebook.com/webtrends
The ID is the first item in the resulting text. In this example it is “54905721286”.
Of course, ‘webtrends’ itself is accepted as a value too (it will just add an extra call to facebook to get the page ID).

Q: Do my Facebook events get updated on a schedule?

A: Yes, You can choose the update interval and also update immediately when you press the ‘Update’ button from the Sync FB Events section within settings.

Q: Why do I get a blank screen when running an update?

A: Check your Facebook App ID, Facebook App Secret and Facebook Page IDs. One of them is probably incorrect.

Installation Instructions
  1. Download the plugin archive and expand it
  2. Upload the eme-sync-facebook-events folder to your /wp-content/plugins/ directory
  3. Go to the plugins page and click ‘Activate’ for EME Sync FB Events
  4. Navigate to the Settings section within WordPress and enter your Facebook App ID, App Secret & Page names or IDs you want to import.
  5. Ensure the Events Made Easy plugin is installed and configured – https://wordpress.org/extend/plugins/events-made-easy/
  6. Press ‘Update’ to synchronize your current Facebook events for display within Events Made Easy.
  7. Synchronization will continue to occur on the schedule you set. You can always update manually if/when needed.

Contributors & Developers

“EME Sync Facebook Events” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.29 (2017/05/18)

  • Allow to sync only a number of facebook pages at a time

1.0.28 (2017/05/05)

  • Facebook picture url can contain query args, resulting in the same image being uploaded on every sync for that event

1.0.27 (2017/04/18)

  • Also import location State (next to zip, city, country)
  • Fix facebook session renewal

1.0.26 (2017/02/25)

  • Account for never-expiring facebook sessions …

1.0.25 (2017/02/22)

  • Some facebook variables are not always set, catch more of those
  • Make sure event images and location info syncs again

1.0.24 (2017/02/21)

  • new facebook api used and long lived sessions expire time shown

1.0.23 (2016/12/10)

  • EME events now support city, zip and country, so this plugin needed an update too
    For this version, you need at least EME version 1.7.8

1.0.22 (2016/03/17)

  • Improvement: also sync events immediately using the api info if not logged in into facebook
  • Bugfix: the location town info got duplicated each time when a location got synced with street info

1.0.21 (2016/02/02)

  • Location sanitizing is needed too

1.0.20 (2016/01/31)

  • Better event sanitizing, requires at least EME 1.6.6

1.0.19 (2015/09/10)

  • Improvement: check for the php version used

1.0.18 (2015/09/09)

  • Bugfix: take local timezone info into account

1.0.17 (2015/09/09)

  • Added option to check for identical locations using just name and address info

1.0.16 (2015/07/24)

  • Facebook removed is_date_only in their latest api (only affects new apps)
  • Simpler use strtotime to support more facebook time formats, timezone issues need to be checked though

1.0.15 (2015/07/13)

  • Facebook removed user_groups in their latest api (only affects new apps)
  • Support more facebook time formats

1.0.14

  • Improvement: speed improvements for importing pages with many events

1.0.13

  • Improvement: take into account all-day facebook events

1.0.12

  • Bugfix: better parsing of facebook datetime strings

1.0.11

  • Bugfix: the event featured image was not being set correctly

1.0.10

  • Feature: also allow closed group events to be synced when logging in with the facebook button

1.0.9

  • Small bugfix

1.0.8

  • Improvement: new facebook api v2.3 used now
  • Some message improvements

1.0.7

  • Bugfix: new installations were not able to use the settings page, rendering the whole plugin useless …

1.0.6

  • Feature: also allow facebook private events to be synced
  • Feature: allow direct import of single event

1.0.5

  • Improvement: add description to uploaded cover pictures
  • Improvement: before each run, check if the image referenced in the event still exists in the gallery

1.0.4

  • Feature: you can now also use the facebook uid, next to the API uid itself. So e.g. ‘webtrends’ and ‘54905721286’ will result in the same
  • Improvement: facebook cover pictures are now downloaded and uploaded into wp, so the power of the gallery is at our disposal now, and EME can use it as any other picture

1.0.3

  • Feature: if wanted, use latitude and longitude to check for matching (existing) locations (next to the facebook id) to check if a location exists already
  • Work around a bug in the facebook api where the cover picture isn’t returned
  • Bugfix: start/end time of imported events were wrong

1.0.2

  • Feature: allow to skip already synced events and locations, so you can edit these and keep the changes

1.0.1

  • Improvement: do nothing if not all settings have been completed
  • Improvement: all strings are translate-ready now, and added eme_sfe.pot and language subdir

1.0.0

  • Initial release (based on the old Sync Facebook Events plugin)