It looks like a comment and the number of comments for the message on the facebook page according to the schedule api version 2

I get both comments and comments for the post on facebook page / group feed call on the api schedule separately using FQL, but as version 2 of graph api fql released no longer works to serve the purpose.

So, I need to find new ways to get a comment and like the bill for the page display message. I will make a separate call to get a comment and like the bill for the message on the fb page, since it may not be possible to get something in the same call to the page channel (or is it?).

So, searching through google, I found the following way using the api chart call -

.. PAGE_ID / feed fields = likes.limit (1) .summary (true) {ID}, comments.limit (1) .summary (true) &? Limit = 10

Is this the best and surefire way? In addition to the id and summary fields, I also get created_time, paging, like the data on the above call, which is unexpected and redundant, how can I exclude these additional fields?

Therefore, please, any FB employee will show me what is the best way to get like and comment count per post of page/group feed using graph api version 2 .

+5
source share
1 answer

If you want to get the number of comments and comments on the message in the FB, you can achieve this using the Id of the message. As shown

.. Your_Post_ID? Fields = likes.limit (0) .summary (true), comments.limit (0) .summary (true)

the result will contain the total number of liked messages, the total number of message comments , post-identifier and message created time .

The result will be like this:

 { "likes": { "data": [ ], "summary": { "total_count": 550 } }, "comments": { "data": [ ], "summary": { "order": "chronological", "total_count": 858 } }, "created_time": "2014-10-12T05:38:48+0000", "id": "Your_Post_ID" } 
+4
source

Source: https://habr.com/ru/post/1200425/


All Articles