This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Facebook Events Widget


Widget to display events from Facebook page or group

Based on code by Mike Dalisay

Version 1.9 requires PHP 5.4 or up.

Upgrade note:
If you modified style.css remember to save it before doing updates to the plugin.


  • example
  • example2


  1. Extract the folder into your WordPress plugins directory.
  2. You’ll have a new widget in the widgets page.
  3. Create a Facebook app to get an app id and app secret.
  4. Add a widget to a sidebar you want.
  5. Fill in the widget settings.
    The app id and app secret are from step 3.


How to modify the style?

You need to edit the style.css file.


November 8, 2017
Hi, This is a great plugin thanks. Can you update it so that it shows the latest date per event ? For example there are 3 dates on one event, the first has passed and there is 2 in the future, the widget correctly displays the event but grabs the first date instead of the latest. Or, can you or someone tell me how to add the code in for this ? Cheers!
August 4, 2017
Just what I needed. I have also used another plugin to use this widget as a shortcode for pages Event start and end times aren't being automatically converted when under daylight savings. Possibly depends on the facebook event page. A quick edit of this plugin by adding the following prior to the loop through the events fixed this for me: $timeOffset += date('I'); This should work if your server time daylight saving is the same as you facebook event daylight savings, but may not work for more complicated arrangements where daylight savings happens under different date ranges.
September 3, 2016
Actually works, actually free and everything has classes which makes it easy to customize.
September 3, 2016
It's actually easy to set up and works Here is more explanation on how to get the facebook api access token and secret.
Read all 8 reviews

Contributors & Developers

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




  • reverse the list of past events


  • fix working with more than 1 widget instance


  • Fix working with copied events
  • Fix adjust times not working for everyone


  • Fix showing events under the right cal separator


  • Use PHP5 style class constructor


  • Fix not showing events for some groups


  • Fix to match the new Facebook API


  • Fix for empty events
  • some cleanup


  • fix textdomain
  • display admin error notice if php < 5.4


  • fix issue with events without end time
  • fix missing events description


  • update fb sdk to v4.0.23. default graph api is v2.3


  • small style change in display margin
  • consider events that started but on going as future events
  • add separators “Upcoming events” and “Past events”


  • fix possible error when no events found


  • use graph api v2.2 as using the next page api doesn’t pass the version and default seems v2.2
  • fix showing current events when there are many future events


  • add translation support and en pot file


  • remove left over debug output


  • use graph api v2.3


  • fix getting access token
  • when requesting future only events show asc order


  • updated fb sdk to v4 and using graph api v2.2 only


  • fixed graph api return future events first. now reversing it when going over the results.
    thanks topherjamessf.


  • fixed showing event too far in the future and not next events.


  • fixed missing future events
  • added option to use graph api instead of fql.
    with the graph api it is possible to access groups events
    and not just fan page events.
    when using graph api then currently the following options
    are not relevent: small picture, future events only,


  • fix event times with daylight saving times.


  • displaying no events message where there are no events.


  • fix not displaying times for events
  • added new checkbox for old timestamps. if your using an old app id and you notice events from the past then you should mark this.


  • fix parsing events timestamps


  • fix something with time offsets.
  • fix to support new time format in facebook replies.


  • fixed time offsets.


  • fixed missing div element when there are no events.
  • fixed not accepting negative time offsets.


  • fixed external css issue.


  • Option for facebook access token to access private calendar.
  • External css file.
  • Option for date separators like in facebook.
  • Option to open events in new window.


  • fixed bug in echo statement.


  • first