在一个API调用中查询多个分析数据 [英] Query multiple insights metrics in one API call
问题描述
可以在一个API调用中查询多个洞察度量值吗?
例如,为了获得页面上每天添加的喜好,我执行了以下调用:
https://图.facebook.com / _object_id_ / insights / page_fan_adds_unique / day /
但是我想要有另一个指标,例如page_fan_removes_unique,也包括在内。 / p>
完全查询洞察对象是一种可能性,但是给我太多的数据我不需要,从而降低性能。
是的,您可以在一个API调用中运行多个FQL查询,然后解析各种结果。
查询: http://developers.facebook.com/docs/reference/rest/ fql.multiquery /
见解表: http://developers.facebook.com/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:
https://graph.facebook.com/_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: http://developers.facebook.com/docs/reference/rest/fql.multiquery/
insights table: http://developers.facebook.com/docs/reference/fql/insights/
这篇关于在一个API调用中查询多个分析数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!