Blogger 上的每个帖子上都会出现相同的 Facebook 评论
我在 Blogger 上有一个博客,并且刚刚安装了新的 Facebook 评论插件。代码如下所示。
<div id="fb-root"></div>
<script>(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));</script>
<fb:comments href="zephraz.blogspot.com" num_posts="10" width="490" colorscheme="dark"></fb:comments>
我真的很难过,因为我博客上的每篇文章都出现相同的评论。我是一名新手,对编码等一无所知。有人可以帮助我吗?
I have a blog on Blogger and I just installed the new FaceBook Comments plugin. The code looks like this.
<div id="fb-root"></div>
<script>(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));</script>
<fb:comments href="zephraz.blogspot.com" num_posts="10" width="490" colorscheme="dark"></fb:comments>
I am really having a difficult time because the same comments appear on each of the post on my blog. I am a newbie and I know nothing about coding and etc. Can anyone help me on this one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
更改:
至:
Change:
To:
将 Facebook 评论添加到 blogspot 很痛苦。但也并非不可能。
我使用了与您现在使用的代码相同的代码,并且我对整个博客的评论是相同的。
我不想要这个。它为您提供不同帖子的不同评论。
为 Blogger 添加 Facebook 评论 关注
请参阅 正确地执行指令,您就会得到结果。
有用。我自己尝试过这个。
Adding facebook comments to blogspot is pain. But not impossible at all.
I had used same code which you are using now and my comments were same for entire blog.
I didnt want this. It gives you different comments for different posts.
refer Adding Facebook Comments for Blogger
Follow the instruction properly and you will get the result.
It works. I have tried this on my own.
其实我也有同样的疑问。通过研究,我偶然发现了下面的论坛帖子,并按照步骤进行操作。
到目前为止,我对这个我受雇工作的博客上的评论插件没有任何问题。
此处检查插件是否正常工作。
它不会出现在首页,只要点击任意帖子,下面就会有评论框。
Actually, I had the same question. Through research, I stumbled upon the below forum thread and followed the steps.
So far, I have no problems with the comments plugin on this blog I'm hired to work on.
check the plugin working here.
It wont be on the homepage, just click any post, it will have the comments box below.
添加:
expr:title='data:post.title'
expr:href='data:post.canonicalUrl'
expr:xid='data:post.id'
而不是博客 URL(除了必须在页面标题部分添加的主要代码之外)将评论表单添加到各个帖子中而不是所有帖子中出现的表格。
即使我也遇到了同样的问题,最终找到了解决方案。工作正常。
GBU
阿尔蒂
Adding:
expr:title='data:post.title'
expr:href='data:post.canonicalUrl'
expr:xid='data:post.id'
instead of the blog url (in addition to the main code that has to be added in the head section of the page) adds the comment form to individual posts instead of the form appearing for all the posts.
Even I had the same problem and finally found the solution for it. Works fine.
GBU
Arti