AUTH BACKENDS¶
- class django_facebook.auth_backends.FacebookBackend[source]¶
Django Facebook authentication backend
This backend hides the difference between authenticating with - a django 1.5 custom user model - profile models, which were used prior to 1.5
Example usage
>>> FacebookBackend().authenticate(facebook_id=myid)
- authenticate(facebook_id=None, facebook_email=None)[source]¶
Route to either the user or profile table depending on which type of user customization we are using (profile was used in Django < 1.5, user is the new way in 1.5 and up)
- profile_authenticate(facebook_id=None, facebook_email=None)[source]¶
Authenticate the facebook user by id OR facebook_email We filter using an OR to allow existing members to connect with their facebook ID using email.
Parameters: - facebook_id – Optional string representing the facebook id
- facebook_email – Optional string with the facebook email
Returns: The signed in User.
- user_authenticate(facebook_id=None, facebook_email=None)[source]¶
Authenticate the facebook user by id OR facebook_email We filter using an OR to allow existing members to connect with their facebook ID using email.
This decorator works with django’s custom user model
Parameters: - facebook_id – Optional string representing the facebook id.
- facebook_email – Optional string with the facebook email.
Returns: The signed in User.