Facebook Canvas好友列表 [英] Facebook Canvas Friend List

查看:94
本文介绍了Facebook Canvas好友列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Javascript通过Canvas访问朋友列表,以获取朋友的生日.我正在阅读源文档,其中指出该朋友的列表对象仅与使用该应用程序的个人有关.

I am trying to access my friend's list through Canvas using Javascript to get the birthday of the friend. I am reading the source documents and it states that friend's list object only pertains to those individuals that use the app.

无论朋友是否使用该应用程序,是否都能通过Canvas应用程序获取朋友列表?

Is it possible to get the friend list regardless of if the friend uses the app or not through a Canvas app?

我尝试将范围设置为"read_friendlists",并将api参数更改为"me/friends"和"me/friendlist".返回的数组为空,我认为这是由于上述限制.

I have tried setting the scope to 'read_friendlists' and changing the api parameter to 'me/friends' and 'me/friendlist'. The array that is returned in empty, and I assume this is because of the aforementioned restriction.

推荐答案

正如您已经提到的,在Graph API的v2.0中,您只能获取也使用该应用程序的朋友列表.

As you already mentioned, in v2.0 of the Graph API you can only fetch the list of friends that also use the app.

从v2.0开始,存在端点/me/invitable_friends,该端点保留给具有移动版画布版本的游戏.它只是返回您可以邀请您玩游戏的所有朋友的列表(感谢Cpt.Obvious).截止到今天,v2.0中无法获得用户所有朋友的列表(除非他们都使用您的应用程序;-)).

Since v2.0, there is the endpoint /me/invitable_friends which is reserved for games that have a mobile and a canvas version. It simply returns a list of all friends that you can invite to play your game (thanks Cpt. Obvious). As of today there is no way to get a list of all friends of the user in v2.0 (unless they all use your app ;-)).

如果您正在玩游戏,则可以查看invitable_friends边缘的"nofollow>文档.

In case you are working on a game, you can check out the docs for the invitable_friends edge.

这篇关于Facebook Canvas好友列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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