2

I was wondering if it's possible to somehow filter graph results by any given field.

For example (Marketing API request through the graph API)

/{adaccount_id}/users?user={given user id}

Today i have to fetch all users and then in my code i have to filter out all other users that don't match. This makes it (counting as a data structure guy) very inefficient since in many requests i have to do huge breakdowns, which costs a lot of resources (some of them up to and over O(N^3)).

Any given help would be appreciated

4

1 回答 1

4

我想知道是否有可能以某种方式按任何给定字段过滤图形结果。

不。

一些端点具有用于过滤的特定额外参数——但只有少数几个。但是您不能仅按任意字段进行过滤。

这使得它(算作数据结构的人)非常低效

根据我与 Facebook 开发人员的讨论,他们说这会严重影响 API 的整体性能——所以他们宁愿让应用程序自己做任何高级过滤。

于 2016-07-21T08:12:12.673 回答