Skip to content

burgalon/django-facebook-oauth-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Facebook authorization backend for Facebook

Based on the original SDK published https://github.com/facebook/python-sdk

Installation

  1. In settings.py add ‘facebook’ to your INSTALLED_APPS
  2. In settings.py add:
    AUTHENTICATION_BACKENDS = (‘facebook.auth.backends.FacebookBackend’,)
  3. In settings.py add (from www.facebook.com/developers/):
    FACEBOOK_APP_ID = ‘’
    FACEBOOK_APP_SECRET = ’’
  4. In your urls.py add:
    url(r’^accounts/‘, include(’facebook.auth.urls’))
  5. You might want to take a look at facebook/auth/views.py and change the ‘scope’ parameter according to the permissions your application needs (http://developers.facebook.com/docs/authentication/permissions)

Notes:

  • Currently the code is built for Google App Engine depending only on urlfetch This is needed in order to pass the ‘deadline’ parameter to avoid timeout issues with Facebook API. However this could be easily changed to use urllib.open()

About

Facebook authorization backend using OAuth for Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages