Comments Facebook plugin - how to sort comments?

I have an FB comment plugin here: www.turie.eu and it works, but the sorting is a little weird. How do I get that arrow at the top to access the sort options? Thanks you

+1


source to share


5 answers


I "solved" this :) The sorting option becomes automatically available when adding comments. I have about 13 comments and it works!



+1


source


I already answered this thread in another thread, but I will repeat it :)

<div class="fb-comments" data-href="your-website" data-num-posts="5" data-width="638" data-order-by="reverse_time"></div>

      



So anyway, the key value for setting is data-order-by = "reverse_time" .

+6


source


Facebook didn't allow external sorts / order tags or command but im solved simple steps :) http://connect.facebook.net/sk_SK/all.js

editing and running files on your local server

Steps

  • search / search colorscheme:this.getAttribute('colorscheme')

    in all.js`
  • change this line order_by:'reverse_time'

  • save it!

    • If you want a different default order to allow these options reverse_time

      time

      social

    • and don't forget to change the facebook js url on the comments page.

<div id="fb-cont"><script src="http://yourwesite.com/all.js"></script>

+3


source


Or you can use this direct link

https://www.facebook.com/plugins/comments.php?api_key=APP_ID&channel_url=https%3A%2F%2Fs-static.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%ab113Df5 26origin% 3Dhttp% 253A% 252F% 252F WWW.YOURSITE.COM % 252Ff846e27164d9b3% 26% 3Dparent.parent ratio% 26transport% 3Dpostmessage & href = HTTP% 3A% 2F% 2FWWWW.YOURSITE_trfCOM% 2FS = 25 & SDK = Joey & width = 470 & view_as_moderator = 1 & controller_id = feedback_1qpSRehzyIefEfw0h & owns_pages = 1 & command = page & limit = 50 & offset = 0 & order_by = reverse_time

Pay attention to WWW.YOURSITE.COM and SUBDIRECTORY between & href = ......... &

This forum gave me a lot of ideas and work around, so now I have a chance to pay a little.

Hope it helps.

+1


source


Nemanja's solution even works with the fb: comments tag.

Adding data-order-by = "reverse_time" as a comment block tag attribute allows you to sort comments by reverse time.

0


source







All Articles