我的博客上的社交媒体插件按钮

发布于 2024-12-23 07:57:19 字数 121 浏览 1 评论 0原文

为什么当我在博客的一篇帖子上按“喜欢”或“推文”甚至“+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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

跨年 2024-12-30 07:57:19

首先检查 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.

城歌 2024-12-30 07:57:19

如果您使用博客,那么您必须使用动态版本,而不是使用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文