Can we get the count of the number of posts in fb using graph api v2.3?
I need to get the number of shares of a specific post in the fb uisng graph api. I couldn't find a way to do this. I followed the link below.
https://developers.facebook.com/docs/graph-api/reference/v2.3/object/sharedposts
It returns general message data in pagination format. Is there a way to get a total stock score without collecting all the data and without pagination?
Please suggest !!
+3
Shatabdi mohapatra
source
to share
2 answers
Just the field shares
should give you the number of shares forPOST_ID
[POST_ID]?fields=shares
Sample data from my feed
{
"shares": {
"count": 1
},
"id": "POST_ID",
"created_time": "2015-04-29T09:07:12+0000"
}
+4
Slartibartfast
source
to share
Get the number of shares:
114916098537132_1265715836790480?fields=shares
Bonus [Get Likes + Promotions + Comments]
114916098537132_1265715836790480?fields=shares,likes.summary(true),comments.summary(true)
Improved version (add constraint (0) to remove liked list and get only summary):
114916098537132_1265715836790480?fields=shares,likes.limit(0).summary(true),comments.limit(0).summary(true)
+3
Abhishek goel
source
to share