import facebook
token = 'your token'
graph = facebook.GraphAPI(token)
profile = graph.get_object("me")
friends = graph.get_connections("me", "friends")
get_connections()方法中的第二个参数是名称如果是连接,我找到了graph api(http://facebook-sdk.readthedocs.org/en/latest/api.html)的文档,但是我无法获得如何获得一个包含图中所有连接的所有名称的列表的信息。在
谢谢你!在
始终使用官方API引用,所有现有连接都在那里:https://developers.facebook.com/docs/graph-api/reference
例如:https://developers.facebook.com/docs/graph-api/reference/user/
(向下滚动到“边”)
相关问题 更多 >
编程相关推荐