Retrieving a User’s Friend Lists

Problem

I need to retrieve a specific user’s friend lists using FQL.

Solution

SELECT flid, name FROM friendlist WHERE owner = $uid;

Discussion

You can run this query only when uid is the current loggedinuser.

Get Facebook Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.