facebook不同人之间的联系

时间:2011-12-29 16:36:58

标签: facebook facebook-graph-api

有没有办法找到两个人是否使用facebook apis连接2-3级(​​确切地说是n)?如果他们是连接的,有没有办法获得不同的可能路径? 如果不是,允许的最大深度是多少?我猜我们可以找到至少2个级别,因为我们可以手动匹配朋友列表..

1 个答案:

答案 0 :(得分:0)

是的,根据每个人的安全级别和他们对您的应用程序的接受程度,您可以使用API​​来确定它。

您需要获得应用用户的read_friendlists权限。

示例:

OK  : Me (authd app)  -> my friend             -> their friend (authd app)
OK  : Me (authd app)  -> my friend (authd app) -> their friend
OK  : Me              -> my friend (authd app) -> their friend
BAD : Me (authd app)  -> my friend             -> their friend
BAD : Me              -> my friend             -> their friend (authd app) 

获得多个级别:

OK  : Me (authd app)  -> my friend             -> their friend (authd app)             -> their friend (authd app)             -> their friend (authd app)             -> their friend (authd app)

OK  : Me              -> my friend             -> their friend (authd app)             -> their friend              -> their friend (authd app)             -> their friend