开发者

is it possible to get friend list by uid?

开发者 https://www.devze.com 2022-12-21 06:20 出处:网络
If i have uid of user is there any way to fetch the user list of this user? i tried \"SELECT uid2 FROM friend WHERE uid1=UID\" but this return permission error.

If i have uid of user is there any way to fetch the user list of this user? i tried "SELECT uid2 FROM friend WHERE uid1=UID" but this return permission error.

My purpose is to find out if me and given user has mutual friends of second, third etc. degree.

thank you. Any help will be appreciated开发者_如何学C


You can only retrieve friend lists of users who have authorized your application.


Nope, you can't get users who are not authorized, this will be againts facebook's policy. The only way is to get them to give you offline_access and then you can use them any time through the life time of your application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号