Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook backend names #48

Open
ei-grad opened this issue Jul 26, 2018 · 1 comment
Open

Facebook backend names #48

ei-grad opened this issue Jul 26, 2018 · 1 comment

Comments

@ei-grad
Copy link

ei-grad commented Jul 26, 2018

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

@shivan-s
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants