点赞按钮结果显示在“其他”中兴趣
我有一个基于 Wordpress.org 的网站,并且我已对其进行了设置,以便在每个单独的“帖子”页面(single.php 文件)上,帖子上方都有一个“赞”按钮,以便用户可以喜欢该单独的帖子。
我正在使用 iFrame,只是切换到 XFBML,但它并没有解决我的问题。我的代码是:
<fb:like send="false" layout="button_count" width="80" show_faces="false"></fb:like>
问题是当有人点击“喜欢”时,它会显示在他们的 Facebook 页面上的“其他”喜欢活动中,因为我猜每个帖子都被视为自己的页面。我怎样才能使每个帖子不被视为一个页面,并且“赞”结果不会显示在某人的“其他”活动中?
我的网站是 www.RockItPro.com,例如单个帖子网址是 http:// www.rockitpro.com/2012/01/04/flyawayhook/
I have a Wordpress.org based website and I've set it up so that on each individual "post" page (single.php file) there's a Like button above the post so users can Like that individual post.
I was using iFrame and just switched over to XFBML but it didn't fix my problem. My code is:
<fb:like send="false" layout="button_count" width="80" show_faces="false"></fb:like>
The problem is when someone clicks "Like" it shows up in their "Other" Like activity on their Facebook page because I guess each post is considered it's own page. How can I make it so each post isn't considered a page and the Like results do not show up in someones "Other" activity?
My website is www.RockItPro.com and for example a single post url is http://www.rockitpro.com/2012/01/04/flyawayhook/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用带有固定 url 的点赞按钮:
这样您的点赞最终会汇总到页面,另一方面,这违背了为文章点赞这些文章的目的,因为 facebook 上的每个用户都会被重定向到固定页面。
要修复其他类别,您需要对页面进行分类。有关如何使用的示例,请参阅 https://developers.facebook.com/docs/opengraph/这样您就可以标记您对该页面的所有权并获得其 Facebook 代表的管理员权限。
You could use a like button with a fixed url:
That way you likes would end up summed to the page, on the other hand this defeats the purpose of liking those articles for the article as every user on facebook would get redirected to the fixed page.
To fix the Other-Category you will need to categorize your page. See https://developers.facebook.com/docs/opengraph/ for examples how to use so you can tag your ownership of the page and get admin permissions to it's facebook representation.