我正在尝试使用Facebook Graph API获取Facebook页面洞察,我在page_cta_clicks_logged_in_total中看到了一些奇怪的数字(看起来它们会出现在所有logged_in指标中)
以下是来自Facebook的Insight数据示例
{
"name": "page_cta_clicks_logged_in_total",
"period": "day",
"values": [
{
"value": {
"470946356598165": 0,
"156880401338097": 0
},
"end_time": "2017-12-13T08:00:00+0000"
},
{
"value": {
"470946356598165": 0,
"156880401338097": 2
},
"end_time": "2017-12-14T08:00:00+0000"
}
],
"title": "Daily Total CTA click count per Page",
"description": "Daily: Total CTA click count per Page",
"id": "<page_id>/insights/page_cta_clicks_logged_in_total/day"
}
470946356598165&amp; 156880401338097
答案 0 :(得分:2)
您可以通过点击相关指标获得这些ID(例如,page_cta_clicks_by_age_gender_logged_in_unique,page_cta_clicks_logged_in_total,page_cta_clicks_logged_in_unique)。 这些ID基本上是页面按钮的ID(请看下图)。
您可以通过执行以下API调用来获取按钮的详细信息 https://graph.facebook.com/470946356598165?access_token=[access_token]
我看到以下回复
{
"id": "470946356598165",
"type": "MESSAGE",
"status": "ACTIVE"
}
答案 1 :(得分:0)
您可以通过脸谱图api:
检查身份证的节点类型https://graph.facebook.com/470946356598165?metadata=1
https://graph.facebook.com/156880401338097?metadata=1
// response:
{
"id": "470946356598165",
...
"metadata": {
"fields": [
...
],
"type": "pagecalltoaction"
},
}
它为我们提供了节点类型为pagecalltoaction
的提示,即Page Call To Action。
查看更多:How can I know if a node returned from Facebook Graph API is a profile or a page?