GithubHelp home page GithubHelp logo

chrumalo / cmsplugin-fbgallery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from django-cms-plugins/cmsplugin-fbgallery

0.0 0.0 0.0 115 KB

Django CMS plugin for facebook gallery

License: MIT License

Python 94.11% HTML 5.89%

cmsplugin-fbgallery's Introduction

Stories in Ready cmsplugin-fbgallery

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.

Installation:

Add the following line into your requirements.txt file:

https://github.com/changer/cmsplugin-fbgallery/archive/v1.0.2.zip

And add the page id in your settings file:

INSTALLED_APPS = (
                  `cmsplugin_fbgallery`,
                  )
                  
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. 
https://www.facebook.com/media/set/?set=a.369541803149826.<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 %}

Usage:

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: https://www.facebook.com/media/set/?set=a.369541803149826.1073741825.125976107506398&type=3

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.

Scope:

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

Bugs/Issues:

Create an issue here with proper detail: https://github.com/changer/cmsplugin-fbgallery/issues

Inspirations/Credits:

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

cmsplugin-fbgallery's People

Contributors

chrumalo avatar vinitkumar avatar waffle-iron avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.