Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/burgalon/django-facebook-oauth-backend
Facebook authorization backend using OAuth for Django
https://github.com/burgalon/django-facebook-oauth-backend
Last synced: about 23 hours ago
JSON representation
Facebook authorization backend using OAuth for Django
- Host: GitHub
- URL: https://github.com/burgalon/django-facebook-oauth-backend
- Owner: burgalon
- Created: 2011-01-09T15:00:24.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2014-07-15T09:04:16.000Z (over 10 years ago)
- Last Synced: 2023-03-10T22:23:13.330Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 116 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. Facebook authorization backend for Facebook
h3. Based on the original SDK published https://github.com/facebook/python-sdk
h3. Installation
# In settings.py add 'facebook' to your INSTALLED_APPS
# In settings.py add:
AUTHENTICATION_BACKENDS = ('facebook.auth.backends.FacebookBackend',)
# In settings.py add (from www.facebook.com/developers/):
FACEBOOK_APP_ID = ''
FACEBOOK_APP_SECRET = ''
# In your urls.py add:
url(r'^accounts/', include('facebook.auth.urls'))
# 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)h3. 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()