可以在一个API调用中查询多个洞察度量值吗?
例如,为了获得页面上每天添加的喜好,我执行了以下调用:
https://图.facebook / _object_id_ / insights / page_fan_adds_unique / day /
但是我想要有另一个指标,例如page_fan_removes_unique,也包括在内。 / p>
完全查询洞察对象是一种可能性,但是给我太多的数据我不需要,从而降低性能。
解决方案是的,您可以在一个API调用中运行多个FQL查询,然后解析各种结果。
查询: developers.facebook/docs/reference/rest/ fql.multiquery /
见解表: developers.facebook/docs/reference/fql/insights/
Is it possible to query more than one insights metric in one API call?
For example to get the daily added likes for a page I executed the following call:
graph.facebook/_object_id_/insights/page_fan_adds_unique/day/
But I would like to have another metric, e.g., page_fan_removes_unique, included as well.
Query the insights object entirely is a possibility, but gives me too much data I don't need, thus decreases performance.
解决方案Yes, you can run a multiple FQL query in one API call and then parse the various results.
multi query: developers.facebook/docs/reference/rest/fql.multiquery/
insights table: developers.facebook/docs/reference/fql/insights/
更多推荐
在一个API调用中查询多个分析数据
发布评论