如何获取我好友的FB好友数量?
现在我的应用程序正在向用户寻求以下权限。
user_about_me,user_birthday,email,friends_about_me,friends_relationships
我正在获取当前登录用户的朋友及其关系状态。有没有办法获得每个人的 FB 好友总数(即我的朋友有多少 FB 好友)。我不需要好友列表,但它足以获取 FB 用户拥有的 FB 好友总数。
这可能吗?我知道,如果用户没有授权该应用程序,我们就找不到任何信息。但我猜 FB 用户的好友数量可能是公共数据!!(除非他也对他们进行了隐私设置)..
使用任何 FQL 查询是否可以实现这一点?
Now my app is seeking the following permissions from user.
user_about_me,user_birthday,email, friends_about_me,friends_relationships
I'm getting the friends of the current logged in user and their relationship status. Is there any way to get the total count of FB friends for each one of them (i.e. No of FB friends my friends have) . I don't need the friends list but its enough to get the total no of FB friends a FB user have.
Is that possible? I know that if the user haven't authorized the app we couldn't find any information. But i guess the no of friends a FB user has may be a public data!!(unless he has privacy setting over them also)..
Is that possible using any FQL queries?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己找到了解决方案。可以使用FQL来获取好友数量。
用户表中有一个 friend_count 字段。
上面的查询将检索我所有的朋友及其姓名和朋友计数。
I have found a solution myself. Its possible to use the FQL to get the friends count.
There is a friend_count field against the user table.
The above query will retrieve all my friends with their names and their friend_count.