Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django App for adding a Facebook like button

Project Description

django-like-button makes it easy to use a facebook like button in your django application. You just need to do the following.


Documentation can now be found in ReadTheDocs here:


  1. Install django-like-button using easy_setup or pip:

    pip install django-like-button
  2. add like_button to your INSTALLED_APPS in your django settings file:

        # all
        # other
        # apps
  3. Add “FACEBOOK_APP_ID” setting to your django settings file with your facebook application Id.


    FACEBOOK_APP_ID = "your appID"
    FACEBOOK_SHOW_SEND = "true"   # or "false, default is "true"
    FACEBOOK_LIKE_WIDTH = "450"   # "numeric value for width", default is 450
    FACEBOOK_SHOW_FACES = "true"  # or "false, default is "true"
    FACEBOOK_FONT = "font"        # default is "arial"
  4. Add the template tag code into your base template before the body tag.

    In the template, in which you want to add button load tags:

    {% load like_button %}

    Where you need the like button:

    {% like_button_tag %}

    At the bottom of the page before the </body> tag put this (you only need to do this once):

    {% like_button_js_tag %}

5. Add the url into your urls file. This tries to address the issue identified with facebooks like button here:


url(r'', include('like_button.urls')),

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.2 kB) Copy SHA256 Hash SHA256
Source None Sep 28, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate