如何使用 Facebook Graph 同时搜索用户和页面名称 API

How to Search User and Page name simultaneously using Facebook Graph API

我想执行 returns Facebook 用户和页面列表的搜索操作。

我正在使用 Graph API 但它不允许我这样做。

https://graph.facebook.com/search/?q=shakira&type=user&access_token={access_token}

API 只允许 1 个参数 type={type}.

我如何在图表中指定两者 API?

无法同时搜索两种类型。您需要使用 type=usertype=page.

进行两次不同的调用

https://developers.facebook.com/docs/graph-api/using-graph-api#search

您可以使用批处理请求使其更快:https://developers.facebook.com/docs/graph-api/making-multiple-requests