social-docs
social-docs copied to clipboard
Facebook backend names
Facebook backend documentation doesn't mention the authentication backend package name and missing the step about adding it to AUTHENTICATION_BACKENDS in settings.py.
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.