K
K
KollRoll2019-10-26 17:08:35
Django
KollRoll, 2019-10-26 17:08:35

Python social auth why can't get email?

I am using python social auth for Django. I signed up with facebook. The first and last names go into the User model, but the email doesn't appear there. Why?
Here is my settings.py:

SOCIAL_AUTH_FACEBOOK_KEY = 'xxx'
SOCIAL_AUTH_FACEBOOK_SECRET = 'xxx'
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL = True
SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {
    'fields': 'id, name, email'
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question