Get posts with insights from a single API call - Facebook Graph API

后端 未结 1 804
春和景丽
春和景丽 2021-01-22 05:59

I\'m wondering if there\'s a way to get recent 10 posts with some of their insights (reactions, reach, views ..etc) from a single API call.

Currently what I\'m doing is

相关标签:
1条回答
  • 2021-01-22 06:55

    Yes. It is possible to do that.

    Here, I'm attaching my graph API URL through which you can get all the posts of the selected page along with the insights.

    You can specify below request in FB graph API tool or any another SDK.

    /{page-id}/posts?fields=insights.metric(post_impressions_fan,post_engaged_users)
    

    You can specify as much as insights metrics with the comma separated.

    You can find more insights metrics at below URL. https://developers.facebook.com/docs/graph-api/reference/v3.0/insights

    0 讨论(0)
提交回复
热议问题