Skip to content

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

@nbro10

Description

@nbro10

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions