Gan*_*esh 1 facebook facebook-graph-api
在上面的图形api版本2.7中,这适用于所有计数(总计,如评论):
https://graph.facebook.com/v2.7/?fields=id,share,og_object{engagement{count},likes.summary(true).limit(0),comments.limit(0).summary(true)}&id=<ad_url>&access_token=<access_token>
Run Code Online (Sandbox Code Playgroud)
但在图形api中,新版本2.10的份额被删除.
任何人都可以帮助我在图api新版本2.10中获得共享计数.
小智 10
您可以使用该查询
https://graph.facebook.com?id=<your-url>&fields=og_object{engagement}
Run Code Online (Sandbox Code Playgroud)
答案是
{
"og_object": {
"engagement": {
"count": 197,
"social_sentence": "197 people like this."
},
"id": "895062470590407"
},
"id": "<your-url>"
}
Run Code Online (Sandbox Code Playgroud)
og_object->engagement->count 这里的总股数