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.

FB Display Events Shortcode


The FB Display Events Shortcode plugin allows you to display list of events from a Facebook on your website using shortcode.


  • Display facebook user’s events by user name or user_id.
  • Display facebook single event by its ID
  • English, Deutsch and Polish translation included.


  • Facebook Developer Access Token


  1. To display user’s events by facebook user name use shortcode [fb_event_list] with attribute fb_user_name, example [fb_event_list fb_user_name=”user_name”]
  2. To display user’s events by facebook user_id use shortcode [fb_event_list] with attribute fb_user_id, example [fb_event_list fb_user_id=”342353464567″]
  3. To display single event use shortcode [fb_event_list] with attribute fb_event_id, example [fb_event_list fb_event_id=”4234464534534″]
  4. Optional attributes:
    • fb_time=”upcoming, past, all” – Display upcoming, past or all user’s events
    • limit=”value” – limits the number of displayed user’s events to a given value


  • Event List
  • Single Event in detail
  • Settings Page



  1. In the admin panel plugins page click Add New
  2. Search for FB Display Events Shortcode
  3. Find FB Display Events Shortcode in the list an click Install Now
  4. Click OK when prompted
  5. Click activate plugin when prompted
  6. In the admin panel under Settings click on FB Event List. Paste your Facebook Developer Access Token in form and save it.
  7. Enjoy!


  1. Extract to your wp-content/plugins directory.
  2. In the admin panel under plugins activate FB Display Events Shortcode.
  3. In the admin panel under Settings click on FB Display Events. Paste your Facebook Developer Access Token in form and save it.
  4. It should now be completely set up and functional
  5. Enjoy!


How to get Facebook Developer Access Token

To get Facebook Developer Access Token, register at and create new App.
Simply go to and follow instructions.

How to get Facebook User Name

Go facebook page from you want get username, example In that case username is happysadpl
xxxxxx refers to the Facebook user’s name:

How to get Facebook User ID

Paste that URL into browser and replace XXXXXX with Facebook User Name, YYYYYY with your access_token
You will get json Response with id.

How to get Facebook Event ID

Go to the facebook event from which you want to get an ID. Get the URL from the webbrowser.
xxxxxx refers to the event id:

In that case fb_event_id=923003774401481

Country name is not showing on local development using xampp on windows

That is: cURL Error # 60: SSL certificate problem: unable to get local issuer certificate
Follow this link: Copy the entire page and save it in a: “cacert.pem”.
Then in your php.ini file insert or edit the following line: curl.cainfo = “[pathtothisfile]\cacert.pem”
example curl.cainfo = “c:\xampp\cacert.pem”

How to check if token is working

Sample below is generated from plugin. Just replace XXXXX with your token. Place that link into browser. If the token is valid you will get data from facebook. You can modify this url. 463776883765579 is user id. Sice and until are timestamps.,name,description,place,timezone,start_time,cover&access_token=XXXXXXXXXXXXXXXXXXX&since=1388534400&until=1468972800

Shortcode displays only text

Try to deactivate other plugins. It may be some sort of collision.

Shortcode not working

If you dont need full place addres try to replace word ‘place’ with ‘location’ in fb-display-events-shortcode.php


Shortcode not working

Shortcode not working I did a test here:,name,description,place,timezone,start_time,cover&access_token=XXXXXXXXXXXXXXXXXX&since=1388534400&until=1468972800 I replaced XXXXXXXX with my token but that’s not how it works. how should I do thanks?

Don't work

Please make an update. The preview looks good, but the compatibility is not good!
Read all 5 reviews

Contributors & Developers

“FB Display Events Shortcode” is open source software. The following people have contributed to this plugin.



Fixed missing in Print_event function


Upgraded data access to fb not only via file_get_contents but also cURL


  • Initial release