Facebook - 计算好友拥有的好友数量
我发现多个问题询问同一件事,但似乎找不到答案。
我可以正确地拉出用户的朋友,但是有没有办法只查看该朋友有多少朋友?我不关心他们的任何信息,只关心他们有多少朋友。
例子: 我的朋友 - John Doe(有 56 个朋友 - Susan Doe(有 132 个朋友)
I have found multiple questions asking the same thing, but can't seem to find an answer.
I can correctly pull the friends of a user, but is there anyway to just see how many friends that friend has? I don't care for any of their info, only the number of friends they have.
Example:
My Friends
- John Doe (has 56 friends
- Susan Doe (has 132 friends)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为此,您应该有权访问朋友的朋友列表。您首先在应用程序中添加此权限。请参阅
https://developers.facebook.com/docs/authentication/permissions/ 获取权限获得许可后,使用 https://graph.facebook.com/friend_id/friends&access_token=xxxx 您将获得好友的好友数量。
For this you should have the permission to access the friend's friend list.You first add this permission in your application.see
https://developers.facebook.com/docs/authentication/permissions/ for permissions.Once you got the permission, by using https://graph.facebook.com/friend_id/friends&access_token=xxxx you will get friends count of a friend.