问题描述
我正在使用 Facebook 图 Api 来搜索用户,我获得的数据与我从 Facebook UI 获得的数据有点不同.例如用户界面的搜索响应首先是朋友、共同朋友和其他相关数据.我如何查询以获取当前用户(即朋友和共同朋友)的相关数据.
I'm using Facebook graph Api to search users and data that i get is kinda different from that i get from Facebook UI. For example search response of User interface is friends, mutual friends and other related data in first. How can i query to get related data for current user ( i.e friends and mutual friends in first place).
这是我用来搜索用户的查询.
Here is query that i'm using to search users.
https://graph.facebook.com/v2.5/search?fields=id,name,picture.type(normal)&limit=50&q={q}&type=user&access_token={token}
推荐答案
那是因为这是两个完全不同的东西.
That’s because those are two completely different things.
通过用户界面提供的搜索功能称为图谱搜索.但是所提供的强大可能性并未通过 API 公开.(为了保护用户隐私,并防止应用通过该数据进行扩展的用户分析.)
The search functionality offered via the UI is called Graph Search. But the powerful possibilities that offers are not exposed via API. (To protect user privacy, and keep apps from doing extended user profiling via that data.)
通过 API 搜索仅限于此处列出的内容:https://developers.facebook.com/docs/graph-api/using-graph-api/#search
Searching via API is limited to what is listed here: https://developers.facebook.com/docs/graph-api/using-graph-api/#search
这并不多 - 但这就是你所得到的.
That’s not much – but it’s all you get.
这篇关于Facebook Graph api 用户搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!