Skip to content

rahit/faceit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faceit

A simple django module for authenticate user using their facebook account. Nicely suited with default Auth module.

Thanks to Johannes Gorset's facepy(https://github.com/jgorset/facepy) module. Make sure you have it installed. Faceit requires this module to communicate with Facebook.

Quick start

  1. Make sure you have FacePy installed. https://github.com/jgorset/facepy
  2. Add "faceit" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'faceit',
    )
  3. specify these setting in your setting.py file.

    FACEBOOK_APPLICATION_ID = your facebook app id

    FACEBOOK_AUTHORIZATION_REDIRECT_URL = redirect url after authentication

    FACEBOOK_APPLICATION_SECRET_KEY = your facebook app secret key

    FACEBOOK_APPLICATION_SCOPE = a list of permission. ex: ['email', 'publish_stream']

Note: Make sure you have specified *email* permission in scope.

  1. Run python manage.py migrate to create the faceit related models.
  2. You can get authentication url using get_auth_url() function after importing faceit.settings

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages