Facebook Graph API返回不一致的Facebook的个人资料 [英] Facebook Graph API Returns Inconsistent Number of Friends With Facebook Profile

查看:91
本文介绍了Facebook Graph API返回不一致的Facebook的个人资料的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,使用新的Facebook Graph API来获取用户的朋友返回一些朋友,这些朋友接近但并不总是确切地显示在用户个人资料上显示的朋友数量。



此处的文档: http://开发人员。 facebook.com/docs/api



例如,在该页面上,我点击 https://graph.facebook.com/me/friends ,并查看477位朋友的JSON,而我在Facebook上的个人资料页面显示为478。有没有人知道为什么会有不一致的情况?



解决方案

如果您有选择退出Facebook平台的朋友,他们将不会显示在API响应中。 p>

I've noticed that using the new Facebook Graph API to fetch friends of users returns a number of friends that is close to, but not always exactly, the number of friends displayed on the user's profile.

Documentation here: http://developers.facebook.com/docs/api

For example, on that page, I click on https://graph.facebook.com/me/friends, and see the JSON for 477 friends, whereas my profile page on facebook shows a count of 478.

Does anyone know why there is an inconsistency?

解决方案

If you have friends that have opted out of the Facebook Platform, they will not show up in the API response.

这篇关于Facebook Graph API返回不一致的Facebook的个人资料的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆