Prerequisite
email
email
with Javascript is working fineaccess token
of userGoal
Problem
name
and id
of user, but email
is not includedemail
togetherCode
import facebook
graph = facebook.GraphAPI(access_token='CAA...DZD')
graph.get_object(id='me')
# result : {u'name': u'Username', u'id': u'123456789'}
graph.get_object(id='me?fields=email,id,name')
# Error : facebook.GraphAPIError: An active access token must be used to query information about the current user
You can try this code:
graph = facebook.GraphAPI(access_token)
profile = graph.get_object('me')
args = {'fields' : 'id,name,email', }
profile = graph.get_object('me', **args)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With