sns-sdks / python-facebook

A simple Python wrapper for facebook graph api :sparkles: :cake: :sparkles: .
https://sns-sdks.github.io/python-facebook/
322 stars 84 forks source link

AttributeError: 'str' object has no attribute 'keys' #239

Open nbro10 opened 10 months ago

nbro10 commented 10 months ago

The following call fails with the error in the title

api = FacebookApi(...)
result = api.user.get_accounts(<authenticated_user_id>)
result.to_json()  # Error occurs here

Now, that the problem is with to_json(). A similar problem happens when we try to call to_dict()

MerleLiuKun commented 10 months ago

Sorry for late reply, I have test with some user, not have this, could you provide the errors data (not forget remove your private message.)

You can got the data by request with return_json parameter.

Thanks