【问题标题】:How to get likes of facebook friends using facebook graph api in python如何在python中使用facebook graph api获得facebook朋友的喜欢
【发布时间】:2014-12-07 00:27:14
【问题描述】:

对于一个网络应用程序,我需要获得其他朋友的喜欢,但不知道如何。我已经有以下代码(其中 token 是我的访问代码):

token = 'CAAHE.......'
graph = facebook.GraphAPI(token)
profile = graph.get_object("me")
print(profile)
friends = graph.get_connections("me", "friends")
friend_list = [friend['name'] for friend in friends['data']]

这给了我我的朋友名单。有没有办法获得每个朋友的喜欢?另外,有没有办法在网站的 javascript 中生成用户的访问代码?谢谢

【问题讨论】:

    标签: python django facebook facebook-graph-api sdk


    【解决方案1】:

    你不能得到朋友的喜欢。朋友权限已被弃用 - 但不确定是否有可能获得朋友的喜欢。这将是一个相当大的隐私问题。

    您也只能获取授权您的应用的朋友,并且您只能获取一些基本数据,例如姓名和(App Scoped)Facebook ID。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-27
      • 1970-01-01
      • 2014-09-16
      • 2013-06-12
      • 1970-01-01
      相关资源
      最近更新 更多