我的网站上的Facebook活动订阅源插件出现问题

Issue with Facebook Activity Feed plugin on my website

本文关键字:插件 问题 网站 Facebook 活动 我的      更新时间:2023-09-26

我在我的网站上使用了face book最近的活动脚本,但它在放置脚本的框旁边没有显示任何内容,即使我有来自朋友列表的提要。

这是我使用的代码:

<iframe src="http://www.facebook.com/plugins/activity.php?site=http%3A%2F%2Fintegration.mytaste.com.au%2F&amp;width=300&amp;height=300&amp;header=true&amp;colorscheme=light&amp;font&amp;border_color&amp;recommendations=false" 
    scrolling="no" 
    frameborder="0" 
    style="border:none; overflow:hidden; width:300px; height:300px;" 
    allowTransparency="true">
</iframe>

你可以从这里自己测试

http://developers.facebook.com/docs/reference/plugins/activity/

使用此urlhttp://integration.mytaste.com.au/框中的for domain字段。

网站上的任何页面上似乎都没有任何Open Graph标记。查看Open Graph Protocol文档,并至少向页面添加og:title、og:type、og:url和og:image元标记,以使它们开始显示在活动提要插件中。您可以使用URL Linter来确保您的页面被我们正确抓取。

第页。S.当用户点击你的"点赞"按钮时,自动张贴在用户墙上有点误导,我们的政策团队可能会这样要求(查看政策)。我建议你改为使用"点赞"按钮。它还有一个额外的好处,即使用户没有登录到你的网站,也可以提供社交环境。如果你需要检测用户何时喜欢你网站上的内容,你可以使用FB订阅"edge.create"事件。Event.subscribe在Javascript SDK中。