我可以使用 facepy 来获得我的喜欢和我的 friend 列表,但我还没有弄清楚如何让它返回我 friend 的喜欢列表,按 friend 排序,例如,这返回使用图形资源管理器: https://developers.facebook.com/tools/explorer/?method=GET&path=1310493851%3Ffields%3Dfriends.fields%28likes%29
这是我的点赞和好友列表:
import json
from facepy import GraphAPI
graph = GraphAPI('access token')
my_likes = graph.get('me/likes')
friends = graph.get('me/friends/')
我要对 graph.get 进行什么调用才能获得我 friend 的点赞列表?
最佳答案
只要把路径放进去就可以了
friend_likes = graph.get('me?fields=friends.fields(likes)')
friend_likes['friends']
关于python - facepy:如何通过 friend 获得我的 friend 使用 facepy 喜欢的页面的列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17264077/