social-docs icon indicating copy to clipboard operation
social-docs copied to clipboard

Facebook backend names

Open ei-grad opened this issue 7 years ago • 1 comments

Facebook backend documentation doesn't mention the authentication backend package name and missing the step about adding it to AUTHENTICATION_BACKENDS in settings.py.

ei-grad avatar Jul 26 '18 22:07 ei-grad

Hi @ei-grad, I agree. The docs aren't really clear on this matter. Even the backend specific docs: https://python-social-auth.readthedocs.io/en/latest/backends/index.html

I did find sample code in the repo: https://github.com/python-social-auth/social-examples/blob/master/example-django/example/settings.py

So for facebook, we have two options (appOAuth2 or just OAuth2):

AUTHENTICATION_BACKENDS = (
    ...
    'social_core.backends.facebook.FacebookAppOAuth2',
    'social_core.backends.facebook.FacebookOAuth2',
    ....
)

Hope that is useful.

shivan-s avatar Oct 14 '21 09:10 shivan-s