Skip to content

Commit

Permalink
Merge pull request #347 from CommOnEcoute/master
Browse files Browse the repository at this point in the history
Facebook backend bug : username is never set
  • Loading branch information
omab committed May 15, 2012
2 parents 14bf67b + 385ad46 commit c75a28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social_auth/backends/facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class FacebookBackend(OAuthBackend):

def get_user_details(self, response):
"""Return user details from Facebook account"""
return {USERNAME: response.get('username'),
return {USERNAME: response.get('name'),
'email': response.get('email', ''),
'fullname': response.get('name', ''),
'first_name': response.get('first_name', ''),
Expand Down

0 comments on commit c75a28f

Please sign in to comment.