通过Facebook API添加到兴趣列表

时间:2012-05-11 15:20:32

标签: facebook

我对facebook API比较新,但想知道如何允许用户通过API或社交插件将页面添加到“兴趣列表”?例如:

<html>
    <head>
      <title>My Great Web page</title>
    </head>
    <body>
       <iframe src="https://www.facebook.com/plugins/like.php?href=YOUR_URL"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:80px"></iframe>
    </body>
 </html>

是如何喜欢的,我理解这是基本的,但我可以允许用户将喜欢的页面添加到他们的兴趣列表中。

1 个答案:

答案 0 :(得分:1)

<强> API

您无法发布到兴趣关联。 Graph API不支持它。

您的应用可以通过GET请求检索用户的兴趣

graph.facebook.com/USER_ID/interests

你需要

user_interests
friends_interests

权限。

但是,您无法发布到兴趣连接。如果您尝试,您将获得GraphMethodException“不支持的帖子请求”作为回报。

社交插件

Social Plug-ins没有任何人将兴趣作为特征发布。

相关问题