Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
鉴于在 v2.0 中您只能下载使用该应用程序的人的朋友列表,并且并非所有活动的参与者都会使用该应用程序,这是否意味着我们不能向用户显示哪些朋友正在去?
我发现没有一个 api 调用可以为您提供用户的完整朋友列表,这让我自己有点奇怪。我仍然觉得我可能遗漏了一些东西。
同时这是我能想到的解决方法:
您可以使用/{event-id}/attending查找所有参加活动的人,然后使用/{user-a-id}/friends/{user-b-id}检查他们是否是特定用户的朋友,这样您可以创建参加活动的用户的朋友列表。
/{event-id}/attending
/{user-a-id}/friends/{user-b-id}
不过,这可能会很慢。