Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要获取出现在https://graph.facebook.com/me/likes中的完整类别列表。这是建立一个基于Facebook喜欢的用户类别和一些其他数据的映射系统。
只需将您的数据保存在字典或 /me/likes 响应中每个页面的某个列表中
例如在 Facepy
my_likes = graph.get('me/likes', page=True) my_categories = [] for like in my_likes["data"]: my_categories.append(like["category"]) my_categories = set(my_categories)