flask-social-blueprint icon indicating copy to clipboard operation
flask-social-blueprint copied to clipboard

Facebook doesn't return first name and last name

Open Arti3DPlayer opened this issue 9 years ago • 4 comments

When i logged in with facebook, i got:

{'username': None, 'last_name': None, 'cn': None, 'profile_id': '...', 'first_name': None, 'access_token': u'...', 'secret': None, 'image_url': '...', 'provider': 'Facebook', 'email': '...', 'profile_url': '...'}

Arti3DPlayer avatar Dec 29 '15 09:12 Arti3DPlayer

Quick fix till the source gets corrected: change line 138 in providers.py to: profile = graph.get_object("me?fields=email,first_name,last_name,name")

danielhomola avatar Dec 29 '15 10:12 danielhomola

Hard coding an url data creates other problems. This is not the way to go (thx @toddetzel)

Please check if it solves the issue I'll make release

wooyek avatar Dec 29 '15 12:12 wooyek

Can you update pip version ?

Please check if it solves the issue I'll make release

how ?:D can i download git version via pip ?

Arti3DPlayer avatar Jan 02 '16 17:01 Arti3DPlayer

Do you update pip ?

Arti3DPlayer avatar Jan 06 '16 18:01 Arti3DPlayer