Facebook New API for Monitoring comment Replies


Facebook Comments API
As you might have noticed, Facebook introduced threaded comments to posts on Fan Pages. And I must say, it was a long-awaited and much-needed feature indeed. It made conversations much more organized, and readable. But what if you wanted to integrate this functionality, and fetch & deliver comments and their replies from your page onto your website? If you're a developer, you'd know that you need an API for this sort of work. Fortunately, you are in luck, because Facebook just rolled out  a new update for its API for comments and replies on Facebook pages. Using this, you can monitor and respond to comments and replies on your Page.

Updates to the API

This update comments API now provides developers with different 'views' of the comments on your page. There are three basic views; Top Level Comments, Replies and Comment Streams. These views can be accessed by the Graph API as well as through Facebook's FQL table.

Threaded Comments

Top Level comments - These are individual comments to the post itself, and not replied to any comment. This view is called "top level". The comments in this view might be ranked on the basis of their quality, replies, and some other factors.

Replies - This view, called "replies" fetches replies to an individual comment of a post.

Comment Streams - "stream" will return all top level comments and their replies in a chronological order, so the top level comments here won't be ranked.

FQL Commands

You can get data using both FQL ad Graph API. If you're using existing API, you need to keep in mind that the 'comments' column in the 'stream' FQL table has been depreciated. Instead, use 'comment_info' field to fetch data from 'can_comments' and 'comment_count' fields. Here are the FQL queries for the three views.

Top Level comments

SELECT id, fromid, time, text, likes
FROM comment
WHERE object_id={object_id} AND parent_id='0'

Replies

SELECT id, fromid, time, text, likes
FROM comment
WHERE parent_id={comment_id}

Comment streams

SELECT id, fromid, time, text, likes
FROM comment
WHERE object_id={object_id}
ORDER BY time
(almost exactly the same as Top level Comments query, but ordered by time, and no check for parent_id being 0;

Missing out on something?

If you're wondering why you don't see threaded comments on your Facebook Fan Page, then that's because Threaded comments have only been enabled for popular pages with a lot of fans (1,000+). If you're not quite there yet, then don't worry. This option will be turned on by default for all pages by June 10.

Do you like the new changes? You can read the Facebook Developers Blog for more information, or check out the documentation for this API for detailed instructions. You can also ask us questions in the comments below. Stay tuned :)

Need Quick Help within 24 Hours? ASK NOW



If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »

25 comments : Post Yours! Read Comment Policy ▼
PLEASE NOTE:
We have Zero Tolerance to Spam. Chessy Comments and Comments with 'Links' will be deleted immediately upon our review.

  1. Nice Post Qasim brother, but please atleast tell us what happened to Mohammad sir why isn't he posting any new tutorial. i think he's having exams.
    i hope once mohammad's exams are over we'll get a lot of new widgets and a "Black Mamba Theme"
    blogiri.com
    technobuzzing.com

    ReplyDelete
  2. fabulous post, Facebook is always helping webmasters.

    Pro Blogging Tips

    ReplyDelete
  3. facebook become better day by day

    ReplyDelete
  4. Yup..this is really helpfull option for webmasters.


    Hack Twitter password

    ReplyDelete
  5. @Varun Chaudhary Yes, buddy. Mohammad is very busy these days.... He will be having exams soon too...But he will hopefully be back as soon as possible. Stay tuned :)

    ReplyDelete
  6. useful information i like the way you write mate,i hope that you guys never quit writing a useful articles like this,thanks and more power to you'r team and site,..And don't forget to visit my latest post here: 5 Important Things to Do Before Publishing Your Article

    ReplyDelete
  7. You said that these comments are only available to fan page of more than 1000+ fans and also siad that it will be enabled default for all pages by June 10.Will it be enable for all pages or limited pages having 1000+ fans?

    MyBlogPromo.com

    ReplyDelete
  8. its very useful information qasim! Google launch Google+ followers box in blogger gadgets inventory.
    regards
    shakeel asghar
    Blogging Tips And Tricks

    ReplyDelete
  9. Nice info..though i hate to see reply on action.. thnx for sharing

    Social Content Locker For Blogger

    ReplyDelete
  10. This site doesnt use threaded comments..i feel the older blogger comments are much more organised


    ...▄▀▄▀▄▀▄ ▀ Bloggerology ▀▄▀▄▀▄▀▄...

    ReplyDelete
  11. hi friends,
    could you please explain api basic, or more detail about this Features, I am waiting to read more about it, please reply if possible my blog wbupdates

    ReplyDelete
  12. Thanks for sharing this post its really nice and helpful.
    __**High Pagerank Dofollow Blogs List**__

    ReplyDelete
  13. Thanks so much ... awesom :D
    success always with u Mr. Qasim Zaib ... Media Referensi™

    ReplyDelete
  14. Nice one Qasim,Finally facebook did this.everything helping blogger to compete with features of wordpress.widget for blogger

    ReplyDelete
  15. i think it is better to use facebook comments plugin than the default blogger one.i have seen many top websites using this feature.great one from you.thanks.best of shayari

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. Facebook going better by providing such applications. And thanks to qasim for sharing information
    http://mybloggertipsfree.blogspot.com

    ReplyDelete
  18. This comment has been removed by the author.

    ReplyDelete
  19. Great Working I am very thankfull to you providing this post..!
    http://wallpappersc.blogspot.com/

    ReplyDelete
  20. Hi. very pleased to see the explanation. waiting for other interesting posts at a time when that will come.
    From bvba Woodstone

    ReplyDelete