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

Description

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

Features:

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

Requirements

  • Facebook Developer Access Token

Usage

  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

Screenshots

  • Event List
  • Single Event in detail
  • Settings Page

Installation

Automatic

  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!

Manual

  1. Extract fb-display-events-shortcode.zip 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!

FAQ

How to get Facebook Developer Access Token

To get Facebook Developer Access Token, register at developers.facebook.com and create new App.
Simply go to https://smashballoon.com/custom-facebook-feed/access-token/ and follow instructions.

How to get Facebook User Name

Go facebook page from you want get username, example https://www.facebook.com/happysadpl/?fref=nf In that case username is happysadpl
xxxxxx refers to the Facebook user’s name: http://facebook.com/xxxxxxx/?otherCharacters

How to get Facebook User ID

Paste that URL into browser https://graph.facebook.com/XXXXXX?access_token=YYYYY 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: https://www.facebook.com/events/xxxxxx/

Example https://www.facebook.com/events/923003774401481/
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: http://curl.haxx.se/ca/cacert.pem 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.

https://graph.facebook.com/463776883765579/events/attending/?fields=id,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
Replace
$fields=”id,name,description,place,timezone,start_time,cover”;
with
$fields=”id,name,description,location,timezone,start_time,cover”;
or
$fields=”id,name,description,timezone,start_time,cover”;

Reviews

Shortcode not working

Shortcode not working I did a test here: https://graph.facebook.com/463776883765579/events/attending/?fields=id,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.

Changelog

1.2

Fixed missing in Print_event function

1.1

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

1.0

  • Initial release