2011-12-29 157 views
0

有沒有辦法找到,如果兩個人都在2-3的水平連接使用Facebook的API(N是精確的)?如果連接,有沒有辦法讓不同的可能路徑? 如果沒有,最大深度允許什麼?我猜測,我們可以發現至少有2級水平,我們可以手動匹配的好友列表..Facebook的連接

回答

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