Retrieving Events Created by a User
Problem
I need to retrieve all of the Facebook events created by a specific user using FQL.
Solution
SELECT eid, name, pic_small, description, start_time, end_time, location FROM event WHERE creator = $user AND eid IN (SELECT eid FROM event_member WHERE uid = $user);
Discussion
This will return content only if the current loggedinuser
can see the events of the user
specified in $user
.
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.