56👍
✅
After some changes in Facebook Login API – Facebook’s Graph API v2.4
You will have to add these lines to fetch email
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {
'fields': 'id,name,email',
}
14👍
I think the problem is using FACEBOOK_EXTENDED_PERMISSIONS.
According to http://python-social-auth.readthedocs.org/en/latest/backends/facebook.html#oauth2 you should use:
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
- Django: why are Django model fields class attributes?
- Use a django built in filter in code (outside of a template)
- Where are the files downloaded using pip stored in virtualenv?
- Docker compose for production and development
0👍
Are you doing it on the test website?
Re-read the documentation please: [https://python-social-auth.readthedocs.io/en/latest/backends/facebook.html#oauth2][1]
It says:
If you define a redirect URL in Facebook setup page, be sure to not define http://127.0.0.1:8000 or http://localhost:8000 because it won’t work when testing
- Django – show loading message during long processing
- 'WSGIRequest' object has no attribute 'get'
- Why does S3 (using with boto and django-storages) give signed url even for public files?
- Django querysets + memcached: best practices
- Docker + Celery tells me not to run as root, but once I don't, I lack permissions to run
Source:stackexchange.com