Facebook Graph api用户搜索 [英] Facebook Graph api users search

查看:158
本文介绍了Facebook Graph api用户搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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).

这是我正在用来搜索用户的查询。 / p>

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}


推荐答案


和我得到的数据与我从Facebook UI中获得的有所不同

and data that i get is kinda different from that i get from Facebook UI

这是因为这两个完全不同的东西。

That’s because those are two completely different things.

通过UI提供的搜索功能称为图形搜索。但是提供的强大可能性并不是通过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/usinggraph -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用户搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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