根据姓名和位置搜索用户 Facebook Graph API、FQL

发布于 12-21 01:52 字数 309 浏览 0 评论 0原文

这就是我想要实现的目标,我有一个使用搜索 api 的 facebook 应用程序 示例 - https://graph.facebook.com/search?q=mark&type =user

使用我可以通过电子邮件或姓名或位置搜索用户,我还想做的是搜索姓名和位置的组合,我也尝试过 fql 但这也没有提供期望的结果。

有没有一种方法可以使用 Facebook API 来搜索使用多个条件的人

Here's what I am trying to achieve, I have a facebook application which makes use of the search api
example - https://graph.facebook.com/search?q=mark&type=user

using that I am able to search for users with either their email or name or location, what I also want to do is search on combination of name and location, I also tried fql but that is also not providing the desired result.

Is there a way using FAcebook API to search for people using more than one criteria

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心清如水2024-12-28 01:52:32

您现在可以尝试这个,

$user_friends1  = file_get_contents('https://graph.facebook.com/'.$uid.'/friends?fields=id,name,birthday&access_token='.$access_token);
$user_friends = json_decode($user_friends1,1);

您可以从 $user_friends 数组中找到您想要的内容

You can try this

$user_friends1  = file_get_contents('https://graph.facebook.com/'.$uid.'/friends?fields=id,name,birthday&access_token='.$access_token);
$user_friends = json_decode($user_friends1,1);

now you can find what you want from $user_friends array

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文