0
對於一個Web應用程序,我需要獲得其他朋友的喜歡,我不知道如何。我已經有以下代碼(其中token是我的訪問代碼):如何在python中使用facebook圖形API獲得Facebook好友的喜歡
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中生成用戶的訪問代碼?謝謝