facebook gallery plugin for django-cms

pip install cmsplugin-fbgallery==1.1.0


Stories in Ready


Build Status

Django CMS plugin for facebook album gallery

This projects helps integrate Facebook album into your Django CMS based website. The plugin provide superb performance compared to the Ajax based alternatives and works even on IE > 6 without any issues. Also, with caching enabled it loads fast without any lag.


Add the following line into your requirements.txt file:

And add the page id in your settings file:


FB_PAGE_ID = '125976107506398'# Get the page Id from facebook album you want to use.
# It is usually the page_id part of the album URL.<album_info>.<page_id>&type=3 

Once, done add a block into the django template where you want to use the plugin to work, preferably in base.html:

{% placeholder facebook-gallery %}


In order to use, add the plugin into the intended placeholder and add facebook album Id and Album name in the admin and save the plugin and page. Once done, you will have the gallery up and running for you.

Finding Album ID:

A facebook Album URL contains the information about the Page ID and Album ID, Here is how you calculate the Album ID:

If URL is:

Your Album ID is: 125976107506398_1073741825 .

Once you find album id of one album, find others is as easy as increasing the count by 1, as facebook assign new album by adding one at a time. So if you have another album, its album id must be 125976107506398_1073741826.


The future versions with bring in more cleanup and fixes to the plugin.


Create an issue here with proper detail:


This projects seeks some inspirations from the work of @dantium and @driesdesmet on django-fbgallery but adapts it to more CMS plugin way.