Answer the question
In order to leave comments, you need to log in
Facebook API (#803) Cannot query users by their username. What's wrong?
Good day everyone!
Installed Facebook API in Python
https://github.com/mobolic/facebook-sdk/blob/maste...
import facebook Everything works.
Example works too
access_token = ''
# Look at Bill Gates's profile for this example by using his Facebook id.
user = 'BillGates'
graph = facebook.GraphAPI(access_token)
profile = graph.get_object(user)
posts
= graph.get_connections(profile['id'], 'posts')
error
For example user='profdanielamatos '
GraphAPIError: (#803) Cannot query users by their username (profdanielamatos)
Help me figure out what's wrong?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question