在一个API调用中查询多个分析数据

编程入门 行业动态 更新时间:2024-10-27 02:24:02
本文介绍了在一个API调用中查询多个分析数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

可以在一个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调用中查询多个分析数据

本文发布于:2023-10-29 12:57:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1539752.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   数据   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!