views:

737

answers:

2

Hi,

I've recently stared looking into the Facebook API and am trying to workout how to retrieve the list of friends of another user (in this case the user is someone I'm friends with).

So far I've only worked out how to find out the friends of a person who I am also friends with. However the Friends Wheel application can do it as you can generate a wheel base on one of your friends, so I'm guessing it is possible.

Anyone know how to do this?

Thanks, Grant

A: 

http://wiki.developers.facebook.com/index.php/Friends.get

See the uid optional parameter.

ilya.devyatovsky
Only works if the target uid has authorized the app as well.
Dustin Fineout
A: 

It looks like Friends.get is what you want.

Andy Gaskell
After looking into it in more detail, it turns out that you can only get the friend of a friend of the current user, if the friend has also registered with the app. If the friend hasn't registered with the app then you can only get a list of mutual friends.
This answer actually isn't correct, you can't get friends of friends unless every friend has authorized the app.
Dustin Fineout