I'm using the basic Django-Social-Auth Facebook code to sign up via Facebook. for some reason, I can't get it to save the user's email, first and last name. it saves the username as the user's first+middle+last but the other attributes stay blank. I tried requesting the email address, and the app does say that we get the email address, but nothing saved to the tables.
I read all the posts and blogs about the Facebook sign up, but nothing seems to work for me. Am I missing something?
in settings.py I have:
FACEBOOK_EXTENDED_PERMISSIONS = ['email']
SESSION_SERIALIZER='django.contrib.sessions.serializers.PickleSerializer'
AUTHENTICATION_BACKENDS = (
'social_auth.backends.facebook.FacebookBackend',
'django.contrib.auth.backends.ModelBackend',
)
INSTALLED_APPS = (
...
'social_auth',
)
I was looking at auth\models.py, and maybe the create_user function doesn't get the email field.
def create_user(self, username, email=None, password=None, **extra_fields):
return self._create_user(username, email, password, False, False,
**extra_fields)