您无法直接从 Marketing Insights 获得评论或反应。
我站得更正了。如果您有权访问 ad_account 见解,则可以使用 Marketing API 直接获取帖子的评论。谢谢@lamxung55
假设您拥有和 ad_id 的123000000
如果您拥有具有ads_management
或ads_read
权限的令牌,则可以向 Marketing API 发出请求,例如
/123000000?fields=creative.fields(effective_object_story_id),insights.fields(actions)
这将为您提供effective_object_story_id
帖子object_id
( {page_id}_{post_id}
) 的内容及其见解,包括按操作类型细分的操作。例如:
{
"creative": {
"effective_object_story_id": "456000000_789000000",
"id": "123000000"
},
"insights": {
"data": [
{
"actions": [
{
"action_type": "comment",
"value": "12"
},
{
"action_type": "like",
"value": "2"
},
{
"action_type": "post",
"value": "3"
},
{
"action_type": "post_reaction",
"value": "29"
},
{
"action_type": "video_view",
"value": "558"
},
{
"action_type": "page_engagement",
"value": "604"
},
{
"action_type": "post_engagement",
"value": "602"
}
],
"date_start": "2017-08-14",
"date_stop": "2017-08-20"
}
],
"paging": {
"cursors": {
"before": "xxx",
"after": "xxx"
}
}
}
}
( effective_object_story_id
so, post_id) 是456000000_789000000
.
然后,您可以查询添加为参数comments
的帖子的边缘。summary=true
此端点对于普通帖子是公开的(但是,它不适用于非公开帖子)
/456000000_789000000/comments?summary=true
这将响应一个对象,如
{
"data": [
<LOTS OF COMMENTS HERE>
],
"paging": {
<PAGING LINKS>
},
"summary": {
"order": "chronological",
"total_count": 50,
"can_comment": true
}
}
这意味着该帖子有 50 条评论,其中 12 条是通过付费操作发表的。