[英]How can i group and display facebook comments done with FB comments plugin on different pages (same page in different languages)?
I use the Facebook comment plugin on my multilingual website. 我在多语言网站上使用Facebook评论插件。 My website's URL contains website language and when someone comments on example.com/en/page.html it is not visible for user who is viewing the same page in French example.com/fr/page.html I want to display all comments done on the page in different languages (different URLs in this case).
我的网站的URL包含网站语言,当有人在example.com/zh-CN/page.html上发表评论时,对于使用法语example.com/fr/page.html查看同一页面的用户不可见,我想显示所有已完成的评论在页面上以不同的语言显示(在这种情况下,URL也不同)。 How can do that?.
那怎么办?
This is the comment code as it is described here . 这是这里描述的注释代码。
<div class="fb-comments" data-href="example.com/fr/page.html" data-num-posts="2" data-width="630"></div>
It's propably not a good idea, because users will comment in different languages and not understand each other. 这可能不是一个好主意,因为用户将使用不同的语言发表评论,并且彼此之间不会相互理解。
But if you really want that, just remove the country-code ( /fr/
in the example) for all pages or just use the same one for alle pages (only in the comment-box) and you're good. 但是,如果您确实希望这样做,只需删除所有页面的国家
/fr/
地区代码(在示例中为/fr/
),或者对所有页面使用相同的国家/fr/
地区代码(仅在注释框中),就可以了。
Remember that facebook doesn't care whether the url is valid or not, it'll still save all the comments and display them as soon as you call the comment-box for this invalid site. 请记住,facebook不在乎该URL是否有效,它仍然会保存所有评论,并在您调用此无效站点的评论框后立即显示它们。 Note that you might get an url-linter error though.
请注意,您可能会收到url-linter错误。 So it's probably better just to use the same country-code in the url for all of them!
因此,最好对所有人使用相同的国家/地区代码!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.