--> Facebook New API for Monitoring comment Replies | Experience Lab - Online business creation and development guide for bloggers and startups

Facebook New API for Monitoring comment Replies

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-n...



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 :)

COMMENTS

Name

Affiliate Marketing,12,Announcement,34,Bing,9,Bitcoin,38,blog,7,Blogger Resources,42,Blogger Templates,4,blogger tricks,156,Blogging ethics,70,Blogging tips,198,Bugs and Errors,34,Business,4,Copyright Violation,9,CSS and HTMLTricks,95,Designs,8,drop down menu,7,eBook,12,Email Marketing,7,Events,30,Facebook,30,Facebook tricks,49,Google,157,Google AdSense,42,Google Analytics,7,Google Plus,51,Google Plus Tricks,38,Guest Posts,112,home,2,How To,77,Internet,1,JSON Feeds,25,Kitchen Recipes,2,Label Based Sitemap Themes,1,Make Money Online,108,Marketing,16,MBT Blogger Templates,7,Menus,1,News,146,Pages,1,Posts,10,presentations,15,Responsive,10,Reviews,7,SEO,307,Settings,6,Shortcode,15,Sitemap Themes,1,Social Media,155,Technology,3,Templates,1,Tips,2,Tools,1,Traffic Tips,80,Video,19,Web Designing,62,web hosting,18,Webmaster Tools,97,Widgets,199,wordpress,26,
ltr
item
Experience Lab - Online business creation and development guide for bloggers and startups: Facebook New API for Monitoring comment Replies
Facebook New API for Monitoring comment Replies
http://2.bp.blogspot.com/-Mu0DjG-PdOQ/UV7oep3JC7I/AAAAAAAAD_s/foAIzqW7muA/s320/facebook+threaded+comments.jpg
http://2.bp.blogspot.com/-Mu0DjG-PdOQ/UV7oep3JC7I/AAAAAAAAD_s/foAIzqW7muA/s72-c/facebook+threaded+comments.jpg
Experience Lab - Online business creation and development guide for bloggers and startups
https://www.experiencelab.info/2013/04/facebook-new-api-for-monitoring-comment.html
https://www.experiencelab.info/
https://www.experiencelab.info/
https://www.experiencelab.info/2013/04/facebook-new-api-for-monitoring-comment.html
true
2959477579779989044
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy