[Python] Why am I getting this error when the module facebook is mported?

Discussão em 'Python' iniciado por Stack, Maio 29, 2025.

  1. Stack

    Stack Membro Participativo

    #!/usr/bin/python
    import facebook
    import facepy
    from facepy import GraphAPI


    graph = facebook.GraphAPI(oauth_access_token)
    profile = graph.get_object("me")
    friends = graph.get_connections("me", "friends")


    friends = graph.get_connections("me", "friends") Traceback (most recent call last): File "", line 1, in AttributeError: 'GraphAPI' object has no attribute 'get_connections'
    ​

    Continue reading...

Compartilhe esta Página