GithubHelp home page GithubHelp logo

Comments (7)

martey avatar martey commented on July 1, 2024

I can not replicate this issue. Does this consistently occur for you? Are you able to replicate it (using the same access token and application) on the Graph API Explorer?

from facebook-sdk.

kaarthikeyapreyan avatar kaarthikeyapreyan commented on July 1, 2024

I used the same access token used in the application
and the get query /?fields=friends

I get this error on the Graph API Explorer
{
"error": {
"message": "Unsupported operation",
"type": "FacebookApiException",
"code": 100
}
}
This is happening only for friends am able to view few of the other data like posts, feeds without any error.

from facebook-sdk.

martey avatar martey commented on July 1, 2024

the get query /?fields=friends

As you can see on line 111, get_connections uses the query id/friends. You could also use /id?fields=friends, but you need to have the Facebook user ID as part of the URL.

from facebook-sdk.

kaarthikeyapreyan avatar kaarthikeyapreyan commented on July 1, 2024

sorry about that martey,
/userid?fields=friends was my input
i also tries by selecting from the node on the left pane from the connections section it also returned me the same Graph API Explorer error.

from facebook-sdk.

martey avatar martey commented on July 1, 2024

Since the error is occurring with the Graph API Explorer as well, this is extremely unlikely to be an error with the library, so I am closing this issue.

You might want to try to create a test user (to see if there is something wrong with the user you are using) or creating a new application. Let me know if you need further assistance by contacting me directly and I will try and help you with further debugging.

from facebook-sdk.

rajasimon avatar rajasimon commented on July 1, 2024

sorry I'm having this problem now...

friends = graph.get_connections(id='me', connection_name='', fields="friends")

and the print of friends is

{'friends': {'data': [], 'summary': {'total_count': 427}}, 'id': '10154052898937398'}

from facebook-sdk.

martey avatar martey commented on July 1, 2024

@rajasimon, there are a number of reasons why the list of friends might be empty that do not relate to bugs in this application. I would advise posting to the Google Group for more support: https://groups.google.com/forum/#!forum/pythonforfacebook

from facebook-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.