设置Facebook评论web插件 [英] Setting Facebook comments web plugin
问题描述
Facebook的评论插件的默认排序顺序是按社会状态 。我如何在我的网页上设置默认顺序为反时间顺序?
The default sorting order of the facebook comments plugin is by social status. How do I set the default order to reverse chronological on my web page?
我知道插件顶部有一个选项。但是并不是所有的用户都知道,排序顺序令人困惑。
I know there is an option on the top of the plugin. But not all users know about it and the sorting order is confusing.
推荐答案
只是猜测我添加了
data-order-by="reverse_time"
给Facebook提供的div,它工作得很好。
所以,使用这里提供的标准html5代码加载pluging: https:/ /developers.facebook.com/docs/reference/plugins/comments/
to the div provided by Facebook and it worked nicely. So, loading the pluging with the standard html5 code provided here: https://developers.facebook.com/docs/reference/plugins/comments/
只需添加 data-order-by
属性如下:
<div class="fb-comments" data-href="YOUR_URL" data-width="470" data-num-posts="6" data-order-by="reverse_time"></div>
这篇关于设置Facebook评论web插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!