Menu

Tree [fecbb5] master /
 History

HTTPS access


File Date Author Commit
 debian 2011-08-06 Simple Geebus Simple Geebus [70c031] Prepared changelog for build 46
 django_facebook 2018-04-16 David Kerkeslager David Kerkeslager [9fffde] Removed newly invalidated scopes
 docs 2018-04-16 David Kerkeslager David Kerkeslager [9fffde] Removed newly invalidated scopes
 facebook_example 2017-05-05 Armin Samii Armin Samii [6e6ea0] fix django1.11 error in settings.py
 open_facebook 2017-10-20 Mehboob Mehboob [d5d86d] Update api.py
 .gitignore 2015-05-29 rafaelgontijo rafaelgontijo [13a141] Fix compatibility
 .travis.yml 2017-05-05 Armin Samii Armin Samii [36b577] Don't allow it to hang forever
 AUTHORS 2012-07-05 Thierry Schellenbach Thierry Schellenbach [a9b131] added authors and changes files
 LICENSE.txt 2010-11-22 Thierry Thierry [85eed2] Signed-off-by: Thierry <thierryschellenbach@...
 MANIFEST.in 2011-04-21 Thierry Schellenbach Thierry Schellenbach [5b8af9] excluded example and docs from pip, do you thin...
 README.rest 2016-09-24 Adam Chainz Adam Chainz [80a958] Convert readthedocs links for their .org -> .io...
 Vagrantfile 2013-10-14 Thierry Schellenbach Thierry Schellenbach [27a83d] travis is now testing 1.5.3
 fabfile.py 2013-10-14 Thierry Schellenbach Thierry Schellenbach [db67ad] pep8
 requirements-dev.txt 2018-04-16 David Kerkeslager David Kerkeslager [6adebd] Got pytest working
 requirements.txt 2016-06-06 Asif Saifuddin Auvi Asif Saifuddin Auvi [594d3f] some general clean up
 runtests.py 2013-02-19 Thierry Schellenbach Thierry Schellenbach [97445d] renaming and cleanup
 setup.cfg 2018-04-16 David Kerkeslager David Kerkeslager [6adebd] Got pytest working
 setup.py 2016-06-06 Asif Saifuddin Auvi Asif Saifuddin Auvi [594d3f] some general clean up

Read Me

Django Facebook by Thierry Schellenbach (mellowmorning.com)

https://secure.travis-ci.org/tschellenbach/Django-facebook.png?branch=master https://pypip.in/d/django-facebook/badge.png

Status

Django and Facebook are both rapidly changing at the moment. Meanwhile, I'm caught up in a startup and don't have much spare time. The library needs a good round of testing against the latest python, django and facebook graph API. Contributions are strongly appreciated. Seriously, give github a try, fork and get started :)

News

  • django-facebook will be dropping support for django < 1.8 since django only supports versions 1.8 and above.

Demo & About

Django Facebook enables your users to easily register using the Facebook API. It converts the Facebook user data and creates regular User and Profile objects. This makes it easy to integrate with your existing Django application.

After registration Django Facebook gives you access to user's graph. Allowing for applications such as:

  • Open graph/ Timeline functionality
  • Seamless personalization
  • Inviting friends
  • Finding friends
  • Posting to a users profile

Updates and tutorials can be found on my blog mellowmorning

Features

  • Access the Facebook API, from:
    • Your website (Using javascript OAuth)
    • Facebook canvas pages (For building facebook applications)
    • Mobile (Or any other flow giving you a valid access token)
  • Django User Registration (Convert Facebook user data into a user model)
  • Store likes, friends and user data locally.
  • Facebook FQL access
  • OAuth 2.0 compliant
  • Automated reauthentication (For expired tokens)
  • Includes Open Facebook (stable and tested Python client to the graph API)

Contributing and Running tests

Tests are run from within the example project. You can run them yourself as follows:

install from git

facebook_example/manage.py test django_facebook

Vagrant

A vagrant development setup is included in the GIT repo. Assuming you have vagrant installed, simply type the following in your shell:

# First get a fresh Django-Facebook checkout
git clone git@github.com:tschellenbach/Django-facebook.git django-facebook

# Go to the directory:
cd django-facebook

# Time to start Vagrant (grab a cup of coffee after this command, it'll take a while) :)
vagrant up; vagrant provision

# Finally done?
vagrant ssh
python manage.py runserver 0:8000

To have a working Django Facebook example up and running at 192.168.50.42:8000/facebook/example/. For the facebook login to work simply map that ip to vagrant.mellowmorning.com (Since Facebook checks the domain)

You can run the test suite by typing:

python manage.py test django_facebook