N
N
New_account2018-07-31 20:12:34
Python
New_account, 2018-07-31 20:12:34

How to get facebook account details?

I need to get facebook account details. By any means using any Python libraries. Now I'm using reguest

r = requests.get("https://graph.facebook.com/{user-id}?access_token" + token)
result = r.json()

If I ask for the ID of my account, everything works correctly. But if I request the ID of another account, I get an error:
{'error': {'message': "Unsupported get request. Object with ID {user-id} does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api", 'type': 'GraphMethodException', 'code': 100, 'error_subcode': 33, 'fbtrace_id': 'AP+qfEDraeB'}}
.Immediately I say the ID is correct, belongs to a real user. If you know how to fix it or another correct solution.
Please answer my question.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question