Chiragkumar Thakar
Chiragkumar Thakar

Reputation: 3726

How do i get latest comments without using FQL with the help of graph API?

I am looking to get the latest comments for the Facebook page which I have created, I can fetch it using FQL, but now I don't want to use FQL Because it'll be Deprecated after few months, so I need to Do it through Open Graph API,

Can anybody help me out here?

Help will be appreciated.

Upvotes: 2

Views: 279

Answers (1)

andyrandy
andyrandy

Reputation: 74014

https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed

/{page-id}/tagged shows the posts that this page was tagged in and the 'posts to page'

...if you mean the user posts. If you want to get the latest comments to page posts, you need to get the latest posts with /page-id/feed first and use the /post-id/comments endpoint for each one. Or easier: /page-id/feed?fields=comments

If you need older entries, you need to use paging: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2#paging

Upvotes: 3

Related Questions