how to get share count on graph api 2.10

前端 未结 2 538
囚心锁ツ
囚心锁ツ 2021-01-21 23:37

In the previous graph api version 2.7 this was working for all count (total, like, comment):

https://graph.facebook.com/v2.7/?fields=id,share,og_object{engageme         


        
2条回答
  •  广开言路
    2021-01-22 00:41

    You can use the query

    https://graph.facebook.com?id=&fields=og_object{engagement}
    

    The answer will be

    {
      "og_object": {
        "engagement": {
          "count": 197,
          "social_sentence": "197 people like this."
        },
        "id": "895062470590407"
      },
      "id": ""
    }
    

    og_object->engagement->count total shares here

提交回复
热议问题