Overview

The Featured Post extension adds the ability to display a specific post based on it’s ID. This allows you to display any single post independent of the rest of the feed.

Below is an example of using the Featured Post extension to display a Facebook post by it’s ID.

Featured Facebook post

Shortcode used above:

[custom-facebook-feed type=photo featuredpost=50043151918_10155795166201919]

See the How to use tab above for directions on how to use the extension.

How to use

Installation

Extensions are installed just like any other WordPress plugin. You can follow the same process used when uploading and installing the Custom Facebook Feed Pro plugin.

Shortcode

The Featured Post extension also allows you to specify the ID of a post to display directly in the shortcode:

[custom-facebook-feed type=photo featuredpost=8245623462_10152583755573463]

You can find the ID by using the following format: NumericPageID_PostID

You can also find the ID of your post by using the Facebook Graph Explorer tool. Just enter your Facebook Page ID into the field followed by ‘/posts’ (eg: smashballoon/posts) and click ‘Submit’. You should then see the API feed of your posts. You can use your browser search tool to find your post and then copy and paste the ‘id’ field from that post into the ‘featuredpost’ shortcode option. A screenshot is included below for reference.

facebook-explorer-post-id

Type of post

In order for the post to be formatted correctly, you need to specify the type of post you are displaying. If you are displaying a photo then add type=photo to the shortcode, for example. If it’s a link then add type=link, if it’s an photo then type=photo, etc.

Shortcode Options

Name Attribute Options Description Example
Featured Post ID featuredpost Any post ID The ID of the post you want to display featuredpost=8245623462_10152583755573463
featuredpost=671123009612491
Post Type type status
photo
video
link
album
event*
The type of post you are displaying type=status
type=photo
type=video
type=link
type=album
type=event*

* Due to Facebook restrictions, in order to display an event you would need to be a host of that event and also use an Access Token from your own Facebook Developer App. Please see here for more information on displaying events.

Change Log

= 1.4.3 =
* Tweak: Updated API calls to use more recent version of the Facebook API
* Fix: Fixed an issue with the post author avatar not displaying for some Facebook pages

= 1.4.2 =
* Tweak: Updated the plugin updater script to reduce requests on the WordPress Plugins page

= 1.4.1 =
* Fix: Added support to Featured events for the “Interested In” count

= 1.4 =
* Compatible with version 3.0 of the Custom Facebook Feed Pro plugin

= 1.3 =
* Now uses the latest version of the Facebook API. Removed any dependency on version 2.0 of the Facebook API which will be deprecated on August 8th, 2016.

= 1.2 =
* Added the ability to display comment replies

= 1.1 =
* Updated to be compatible with version 2.4 of the Facebook API

= 1.0 =
* Launched the Featured Post extension