0

In FQL/PHP, how to get the friendlist of a friend? I can not find in the Facebook Developer API Documentations also.

I used something similar like this:

SELECT uid, first_name, last_name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = 'UID_OF_A_FRIEND_HERE')
夏期劇場
  • 17,821
  • 44
  • 135
  • 217

2 Answers2

1

Yep, that syntax is correct, you can check it on the Graph Explorer, however will only work if A) The friends privacy settings allow it, and B) The friend is a user of your app.

Joe T
  • 794
  • 4
  • 6
0
SELECT uid, first_name, last_name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())

i just check with Facebook Graph API Explorer. it works

Shaik Rilwan
  • 365
  • 2
  • 8