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.
I was googling a lot without success, so I solved this by some reverse engeneering...
facebook_crazy_url
of that iframe (see step 2). The inserted iframe seems to be the only thing that is needed to run the comments properlyfacebook_crazy_url
&order_by=reverse_time"Another option inspired by Jan Turoň's solution:
<div id="comments"><fb:comments ...></fb:comments></div>
$('#comments iframe').attr('src', $('#comments iframe').attr('src') + '&order_by=reverse_time')
Of course, you can do this without jQuery.
It loads the comments' frame twice, but it works in all cases without harcoding the iframe's src.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With