python - where can I get all names of connections in the graph API -
import facebook token = 'your token' graph = facebook.graphapi(token) profile = graph.get_object("me") friends = graph.get_connections("me", "friends")
the second parameter in method get_connections() name if connection, found documentation of graph api (http://facebook-sdk.readthedocs.org/en/latest/api.html) not information how list names of connections exist in graph.
thank you!
always use official api reference, existing connections in there: https://developers.facebook.com/docs/graph-api/reference
for example: https://developers.facebook.com/docs/graph-api/reference/user/
(scroll down "edges")
Comments
Post a Comment