Displaying Facebook Albums using the WordPress Plugin

Displaying Facebook Albums

There are three main ways in which you can use the Custom Facebook Feed WordPress plugin to display albums from your Facebook page or Group; from your Facebook Photos page, from your Facebook timeline, or by embedding a specific Facebook album into your page.

From your Facebook Photos page

This method will pull the albums directly from your Photos page on Facebook and display them in a grid format similar to how they are displayed on Facebook, and as you can see in this demo. When an album is clicked on, the other photos from the album are displayed at the bottom of the pop-up lightbox.

Facebook albums

You can display albums from your Photos page in two ways; using the plugin’s Settings pages or using the shortcode options.

Settings pages:

Click on the plugin’s ‘Customize’ page, and in the ‘Post Types’ section uncheck all other post types apart from ‘Albums’. You can then select to show albums from your ‘Photos Page’.

albums-page

Shortcode options:

Just set the post type to be ‘albums’ in your shortcode and then change the album source to be your Facebook Photos Page, like so:

Comments Box SVG iconsUsed for the like, share, comment, and reaction icons

Limitations

Due to Facebook limitations, it’s only possible to initially display 50 Facebook albums on the page (instead of the usual 100 with other post types), but you can then display more by clicking the “Load More” button at the bottom of the feed.
When opening an album, only 100 photos from within that album can be displayed due to a Facebook API limitation. In order to view more, the user would need to click through to Facebook.

 

From your Facebook timeline

If you create an album, add photos to an existing album, or if you upload multiple photos to your Facebook page in one go, then Facebook creates an “album post” on your Facebook page timeline. You can use the plugin to get a batch of posts from your Facebook timeline and then filter through them and only display the ones which are album posts. The albums will be displayed in a “post” layout, as shown below.

timeline-album

You can display album posts from your timeline in two ways; using the plugin’s Settings pages or using the shortcode options.

Settings pages:

Click on the plugin’s ‘Customize’ page, and in the ‘Post Types’ section uncheck all other post types apart from ‘Albums’. You can then select to show albums from your ‘Timeline’.

timeline-albums

Shortcode options:

Just set the post type to be ‘albums’ in your shortcode and then change the album source to be your timeline, like so:

Comments Box SVG iconsUsed for the like, share, comment, and reaction icons

 

Embedding a specific album

You can use our Album Extension to embed the contents of a specific Facebook album into your web page. This will then display a grid of the photos from within that album and allow you to view them in a pop-up lightbox. See the Album Extension page for more information.