Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nbro10 opened this issue Sep 1, 2023 · 1 comment
Open

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

nbro10 opened this issue Sep 1, 2023 · 1 comment

Comments

@nbro10
Copy link
Contributor

nbro10 commented Sep 1, 2023

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants