朋友的朋友/二级朋友的列表。 Facebook 图形 API

发布于 2024-10-25 15:09:26 字数 305 浏览 1 评论 0原文

我正在尝试使用 iPhone Facebook SDK 获取我朋友的好友列表。 我尝试过使用 FQL 和 Graph API 的方法,但在这两种情况下都出现错误:

“无法查找YYYYYY的所有好友。只能查找已登录的用户(XXXXX),或者 具有适当权限的登录用户的朋友”

我做了一些研究,发现这个功能直到 2010 年 10 月才可以通过 Facebook API 使用。但随后无线电静默。好吧,差不多 6 个月后了。所以这曾经实现过吗?

我也请求了我的应用程序所需的所有权限。

I am trying to get a list of my friend's friends using the iPhone Facebook SDK.
I've tried an approach using FQL and the Graph API but I get an error in both cases:

"Can't lookup all friends of YYYYYY. Can only lookup for the logged in user (XXXXX), or
friends of the logged in user with the appropriate permission"

I've done some research and see that this functionality wasn't available through the Facebook API up until October 2010. But then radio silence. Well, it's almost 6 months later. So was this ever implemented?

I have requested all permissions I need for my app as well.

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

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

发布评论

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

评论(2

听风吹 2024-11-01 15:09:26

Facebook 社交图谱 API 或 FQL API 中不存在此功能。

在我寻找如何实现这一目标的过程中,我发现许多开发人员都提出了同样的问题。一些开发人员已经要求此功能两年多了。我认为 FB 团队可能会认为这是性能问题的隐私问题。

This functionality does not exist in the Facebook Social Graph API or the FQL API.

During my quest to find out how to accomplish this I found many developers who asked the same question. Some developers have been asking for this feature for over 2 years. I think the FB team may consider it a privacy of performance concern.

给我一枪 2024-11-01 15:09:26

我已经在努力了。我能够见到我朋友的朋友。

它需要以下要求:

  1. 您的朋友需要使用应用程序。
  2. 来自应用程序 read_stream、publish_stream、publish_checkins 的权限。

尝试这个 fql 查询。

$query="SELECT uid, name, work_history FROM user 
      WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 IN 
      ( SELECT uid FROM user WHERE uid IN 
         (SELECT uid2 FROM friend WHERE uid1 = $fb_id ) and is_app_user=1)
       )";

I have worked on it. I was able to see friends of my friend.

It needs following requirements:

  1. Your friend needs to be using application.
  2. Permission from application read_stream, publish_stream, publish_checkins.

Try this fql query.

$query="SELECT uid, name, work_history FROM user 
      WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 IN 
      ( SELECT uid FROM user WHERE uid IN 
         (SELECT uid2 FROM friend WHERE uid1 = $fb_id ) and is_app_user=1)
       )";
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文