在一个API调用中查询多个分析数据 [英] Query multiple insights metrics in one API call

查看:125
本文介绍了在一个API调用中查询多个分析数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在一个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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆