Skip to main content

Django implementation for Facebook authentication.

Project description

Facebook auth login library based on Django class based structure

A stable for Django >= 1.7 & Python >= 2.7

Configuration

Settings

  1. Install django_facebook_auth_helper

    pip install django_facebook_auth_helper
    
  2. Add django_facebook_auth to INSTALLED_APPS

    INSTALLED_APPS = (
        'django_facebook_auth',
    )
    
  3. Add authentication backends to AUTHENTICATION_BACKENDS

    AUTHENTICATION_BACKENDS = (
        'django_facebook_auth.backends.FacebookBackend',
    )
    
  4. Add facebook settings to settings.py

    FACEBOOK_APP_ID = YOUR_APP_ID
    FACEBOOK_APP_SECRET = 'YOUR_APP_SECRET'
    FACEBOOK_REDIRECT_URI = 'http://localhost:8000/login/'
    
  5. Import django_facebook_auth modules to views.py

    from django_facebook_auth.views import FacebookLoginMixin
    from django_facebook_auth.models import FacebookSession
    

Project details


Download files

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

Files for django-facebook-auth-helper, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size django-facebook-auth-helper-0.1.6.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page