Effectively calculate the number of graphs from the Graph API

I am trying to get information about a set of user messages (last 20 posts). For each post, I would just like to get comments, comments and shares.

So far I have managed to get the value and the number of comments, but I was not lucky in restoring the number of shares.

This is the query I used:

https://graph.facebook.com/me?access_token=x&limit=20&fields=id,comments.limit(0).summary(true),likes.limit(0).summary(true)

I understand that there are ways to get the stock counter using the object identifier, but I would like to refrain from creating 20 different queries in order to get this field.

Is there any other way that I can make one batch request to achieve this?

+4
source share

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


All Articles