Skip to main content

Definitive facebook auth for Django

Project description

Dedicated facebook authentication for Django that does it via the backend and not javascript. Has lots of tests and a trivial-to-setup test project with working code.

Reason: http://pydanny.blogspot.com/2011/01/what-i-want-for-django-facebook-connect.html

Full Documentation: http://django-la-facebook.readthedocs.org/en/latest/index.html

Usage

Get django-la-facebook into your python path:

pip install django-la-facebook

Add la_facebook to your INSTALLED_APPS in settings.py:

INSTALLED_APPS = (
    ...
    'la_facebook',
    ...
    )

Add la_facebook to your root urlconf (urls.py):

urlpatterns = patterns('',
    ...,
    url(r"^la_facebook/", include("la_facebook.urls")),
    ...,
)

Add settings just as:

FACEBOOK_ACCESS_SETTINGS = {
        "FACEBOOK_APP_ID": FACEBOOK_APP_ID,
        "FACEBOOK_APP_SECRET": FACEBOOK_APP_SECRET,
        # The following keys are optional
        # "CALLBACK": "la_facebook.callbacks.default.default_facebook_callback",
        # "PROVIDER_SCOPE": ['email','read_stream'],
        # "LOG_LEVEL": "DEBUG",
        # "LOG_FILE": "/tmp/la_facebook.log",
}

Project details


Download files

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

Source Distribution

django-la-facebook-0.1.1.tar.gz (29.2 kB view details)

Uploaded Source

File details

Details for the file django-la-facebook-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django-la-facebook-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fd56cb1b1a38dd1bb871ebfbcb60f6e2921051a97d65255164e5abe47d643e81
MD5 9e44992caa179338e50277b47835be99
BLAKE2b-256 7139549ae0878da05de7f7bc4de6b5012235e965323425fef4f690884c56d60c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page