简体   繁体   中英

Facebook comment plugin - Comments unsorted?

I have developed an app on Facebook and used the Facebook comment plugin but I realised that when users comment on the page, the comments are unsorted.

Is there any way to make the comments sorted to show the latest one first?

它们不是未排序的,但它们是通过与点赞次数等相关的某种算法进行排序的。据我所知,没有办法在代码中进行控制。

When you use the fb:comments tag, there is a attribute called num_posts that you can set. If the number of comments posted is less than this, then comments are always sorted according to Facebooks "social" ordering scheme. Once the number of comments exceeds that number, a control will appear that lets the user choose chronological ordering (both ascending and descending) or social order. But also the user will have to hit a button to load additional comments. You can see this in action here:

http://thinkprogress.org/politics/2011/08/25/304274/minnesota-gop-highest-bidder/#comment_link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM