简体   繁体   English

Graph API计数好友

[英]Graph API count friends

I know that facebook remove many options from open graph, but is there some options to get only friends number? 我知道Facebook从打开的图形中删除了许多选项,但是有一些选项只能获取朋友号码吗? I don't need to have nothing more than all friends count for user - not only number of friends who also use my app. 我只需要所有朋友为用户计数就可以了,不仅需要使用我的应用程序的朋友数量也可以。

Is there such option? 有这种选择吗?

From the FAQ 常见问题

For people who have logged into my app with Facebook, how can my app get their total friend count? 对于使用Facebook登录到我的应用程序的人,我的应用程序如何获得其好友总数?

As of Tuesday 22nd July 2014, we now return a total_count field within a summary property in the response to /v2.0/me/friends . 自2014年7月22日(星期二)起,我们现在在对/v2.0/me/friends的响应中的summary property内返回total_count字段。 This means all upgraded apps now have access to a person's total friend count in all calls to the friends edge. 这意味着现在所有升级的应用程序都可以在对好友边缘的所有呼叫中访问一个人的好友总数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM