Facebook Graph API用户搜索 [英] Facebook Graph API user search

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

问题描述

在搜索API中,我需要获取诸如facebook.com之类的用户详细信息.如果我使用图形API 获取搜索详细信息,则信息完全不同.

In the search API, I need to get user details like facebook.com. If I get search details using Graph API, details are totally different.

例如,在我的朋友列表中搜索一个人时,他/她的详细信息将首先显示.但是使用Graph API,我得到的那些细节是无序的.

For example, while searching one person in my friend list, his/ her details will display in first. But using Graph API, I get those details unordered.

示例URL: https://graph.facebook.com/search?q = SEARCHNAME& type = user

推荐答案

之所以出现差异,是因为Facebook通过您的帐户为您自定义搜索结果,并且比陌生人更喜欢您的朋友.当您搜索未识别的Facebook graph API时,它无法执行同样的操作.

The reason for the difference is because Facebook is customizing the results for you and prefers your friends over strangers when you search via your account. When you search the Facebook graph API unidentified it cannot do the same.

这篇关于Facebook Graph API用户搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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