1π
β
In python-social-auth (which replaces django-social-auth) you have to set these two to obtain email from FB:
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {
'locale': 'pl_PL',
'fields': 'id, name, email',
}
SOCIAL_AUTH_FACEBOOK_SCOPE
is equivalent of FACEBOOK_EXTENDED_PERMISSIONS
, and I guess SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS
is equivalent of FACEBOOK_PROFILE_EXTRA_PARAMS
. So I would try:
FACEBOOK_EXTENDED_PERMISSIONS = ['email']
FACEBOOK_PROFILE_EXTRA_PARAMS = {
'locale': 'pl_PL',
'fields': 'id, name, email',
}
π€zergu
Source:stackexchange.com