您无法直接从 Marketing Insights 获得 cmets 或反应。
我的立场是正确的。如果您有权访问 ad_account 见解,则可以使用 Marketing API 直接获取帖子的 cmets。谢谢@lamxung55
假设你有 123000000 的 ad_id
如果您拥有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(所以,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 个 cmets,其中 12 个是通过付费操作完成的。