使用"data:post.url"在Facebook评论插件中不起作用



我的网站上有一个Facebook评论插件:当我将某个博主帖子的网址放入数据href时,它正在工作

<div class="fb-comments" 
data-href="http://vctestsite.blogspot.com/2015/04/just-another-lorem-human-post-check-to.html" 
data-numposts="3" 
data-colorscheme="light">
</div>

当然,如果我在我的博主模板中使用上面的代码,我所有博主帖子中的所有 Facebook 评论都将相同。

但是当我将该 data-href 更改为 data:post.url 时,它不起作用。评论插件不会出现在我的博客中。

<div class="fb-comments" 
data-href="data:post.url" 
data-numposts="3" 
data-colorscheme="light">
</div>

这是测试站点: http://vctestsite.blogspot.com/2015/04/just-another-lorem-human-post-check-to.html

那只是我的测试网站。任何人?

解决了!

<div class="fb-comments" expr:href='data:post.url' expr:title='data:post.title' expr:xid='data:post.id' width='450'></div>

expr:href='data:blog.canonicalUrl'更新为代码中的data-href="data:post.url"

最新更新