Sử dụng mã thông báo truy cập trang cho trang bạn quản lý, (với read_insights
Permission).
Sau đó, bạn có thể truy cập /POST_ID/insights
để truy xuất thông tin chi tiết về bài đăng đó.
Đối với bài đăng mẫu trên trang của tôi, điều này trả về dữ liệu hiển thị cho bài đăng. Trích:
{
"id": "[ID REMOVED]/insights/post_story_adds_by_action_type/lifetime",
"name": "post_story_adds_by_action_type",
"period": "lifetime",
"values": [
{
"value": {
"like": 20,
"comment": 3,
"share": 1
}
}
],
"title": "Lifetime Post Stories by action type",
"description": "Lifetime The number of stories created about your Page post, by action type. (Total Count)"
},
{
"id": "[ID REMOVED]/insights/post_impressions_unique/lifetime",
"name": "post_impressions_unique",
"period": "lifetime",
"values": [
{
"value": 936
}
],
"title": "Lifetime Post Total Reach",
"description": "Lifetime The number of people who saw your Page post. (Unique Users)"
},
{
"id": "[ID REMOVED]/insights/post_impressions/lifetime",
"name": "post_impressions",
"period": "lifetime",
"values": [
{
"value": 2936
}
],
"title": "Lifetime Post Total Impressions",
"description": "Lifetime The number of impressions of your Page post. (Total Count)"
},
Các bài viết trên blog từ khi điều này đã được đưa ra là ở đây: https://developers.facebook.com/blog/post/573/ Và kết nối insights
được đề cập trong Post documentation