views:

120

answers:

2

Hello, how can i get a list of my friends friends in Facebook using any Facebook API?

I've seen this working on some Facebook apps - like the Marketplace app that allows to search for ads from my friends and their friends.

How do they do it? However, I'm getting stuck with FQL here:

"SELECT uid2 FROM friend WHERE uid1 in ( select uid2 from friend where uid1 = {0} )"

because facebook tells me:

Can't lookup all friends of XXXX; can only lookup for the logged in user (YYYY) or for pairs of users

(where XXXX would be the first user ID returned by the subselect and YYYY is my user ID)

So, can anyone tell me, what's the trick to get this working?

A: 

It's not possible to get Friend's Friends. It has not been allowed via the API for years.

Baja
A: 

How can that be? The Marketplace App is able to access friends friends:

this link lists all the ads from your friends friends.

Are they using any special trick?

mattt
Can you please comment the answer you are reacting to instead of adding another answer with your comment? It's difficult to follow this way.
Andrew J. Brehm