将应用程序用户与共同的朋友联系起来

发布于 2024-12-06 03:02:33 字数 657 浏览 0 评论 0原文

我正在寻求创建一个应用程序,允许人们相互建立联系。我希望能够建议某人连接到已授权该应用程序的另一位用户(如果他们有共同的 Facebook 好友)。我不需要或真的想找出有关那个共同朋友的任何信息。

我看到这里很多人询问是否可以提取朋友的朋友列表,以及如何不允许这样做,因为这些人尚未授权您的应用程序。这似乎是 Facebook 设定的一个非常明智(而且显然是故意的)限制。

我想做的有点不同。我想特别拉出已经授权该应用程序的朋友的朋友。看起来,如果我有离线访问权限,我就可以访问所有用户的朋友列表,只是不获取它们的交集。我说得对吗?

已经执行类似操作的示例是 http://airbnb.com。我可以去那里,用 Facebook 登录,然后搜索与我有共同朋友的人所拥有的房产。他们是否必须通过下载每个用户的 Facebook 好友列表,将其存储在数据库中,然后自己计算与登录用户的交集来做到这一点?鉴于所有权限都在那里,与良好的 FQL 查询相比,这似乎是一种相当迂回的做事方式。

我猜问题是您一次只能使用带有一个访问令牌的 FQL。计算两个应用程序用户的共同好友需要他们两个的许可,因此需要两个访问令牌?

任何人都可以提供有关如何做到这一点的任何见解,我们将不胜感激。我认为它不会使用用户未经许可的任何数据,但我不太明白。

I'm looking to create an app that allows people to create connections with each other. I'd like to be able to recommend that somebody connects to another user who has authorised the app if they have a mutual Facebook friend. I do not need or really want to pull out any information about that mutual friend.

I see a lot of people here asking about pulling lists of friends of friends and how that isn't allowed as those people haven't authorised your app. This seems like a very sensible (and clearly deliberate) limitation set out by Facebook.

What I want to do is a little different. I want to pull specifically friends of friends who HAVE authorised the app. It would seem that if I have offline access for this, I can access the friends lists for all my users, just not take intersections of them. Am I right?

An example already doing something like this would be http://airbnb.com. I can go there, log in with Facebook, and then search for properties that are owned by people I share a mutual friend with. Must they be doing this by downloading the list of Facebook friends for each user, storing them in their database and then computing the intersection with the logged in user themselves? Given that all the permissions are there, this seems like a rather roundabout way of doing things compared to a nice FQL query.

I guess the issue is that you can only use FQL with one access token at once. Computing mutual friends of two app users would require permissions from both of them and hence two access tokens?

Any insight anyone can provide about how to do this would be greatly appreciated. I don't think it would be using any data a user hasn't given permission for but I can't quite figure it out.

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

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

发布评论

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

评论(1

○愚か者の日 2024-12-13 03:02:33

您可以使用共同好友 API。给定两个 facebook id,它会返回共同朋友的列表,因此您不需要执行您所编写的任何操作。

There is mutual friend API that you can use. Given two facebook id's it returns the list of mutual friends, so you don't need to do any of what you have written.

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