我的博客上的社交媒体插件按钮
为什么当我在博客的一篇帖子上按“喜欢”或“推文”甚至“+1”按钮时,即使我没有在其他帖子上按“喜欢”按钮,它也会应用于所有帖子。您认为是我的 html/javascript 代码造成了这个问题或错误吗?
谢谢你,
Why is that when I press "like" or "tweet" and even "+1" button on one post of my blog, it is also applied to all post even when I am not pressing the like button on other post. Do you think it is my html/javascript code who gave this problem or bug?
Thank you,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先检查 og: 标签是否在 HTML 中正确指定。您可以使用 Facebook 的免费 linter 工具来检查并确保它们正确:https://developers.facebook.com /tools/debug
另外,如果您提供一些示例链接以及用于完成此操作的代码,我们会更有帮助。
first check the og: tags are correctly specified in the HTML. You can use Facebook's free linter tool to check and ensure they're correct: https://developers.facebook.com/tools/debug
Also, it would be more helpful to us to help you if you provided some sample links and also code you're using to accomplish this.
如果您使用博客,那么您必须使用动态版本,而不是使用 Facebook 提供的代码(静态),该版本将适当地生成 FBML 标签。twitter 和 G+ 的情况类似。以下是这些内容的链接。
喜欢按钮:http://www.bloggerplugins.org/ 2010/04/facebook-like-button-for-blogger.html
G+ 按钮:http://www. bloggerplugins.org/2011/06/add-google-plus-one-button-on-blogger.html
If you are using blogger, then instead of using the code provided by Facebook(which is static), you have to use a dynamic version which will generate the FBML tags appropriately.Similar is the case with twitter and G+. Here are the links to the those.
Like button : http://www.bloggerplugins.org/2010/04/facebook-like-button-for-blogger.html
G+ Button : http://www.bloggerplugins.org/2011/06/add-google-plus-one-button-on-blogger.html