开发者

How Lookup For Friend Of Specified User

Get A List Of Friends For Specifi开发者_Python百科ed Facebook User

Whats Permissions Must Be Asked For This ???


Unfortunately for you, but fortunately for the friends of your friends, the friends method is only available on me (https://graph.facebook.com/me/friends?access_token=xxx) and not on any other user (https://graph.facebook.com/id/friends)

You can try this out for yourself just in a browser, if you go to http://developers.facebook.com/docs/reference/api/user/, scroll down to the Connections section and follow the friends link, you will get the list of all your own friends (assuming you are logged into facebook)

If you then replace the 'me' in the URL you get with the id of one of your friends, you will get the following message:

"(#604) Can't lookup all friends of [id]. Can only lookup for the logged in user ([loggedinid]), or friends of the logged in user with the appropriate permission"

EDIT:

This may have changed since the last time I looked at this, the friends of the logged in user are available with the user_about_me permission, and there is a related friends permission called friends_about_me, this may let you access friends of friends. (See http://developers.facebook.com/docs/authentication/permissions/


I've found it explained here Facebook API from C# – Getting the list of friends. You have to create the tokken and then get https://graph.facebook.com/me/friends?access_token={TOKEN HERE WHITOUT {}}


well i think you should have a look at Facebook Graph API

and i think that instead of me you can place friends id and thats all

https://graph.facebook.com/me/friendlists
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜