I need to retrieve all of the pending friend requests for a specific user using FQL.
This query will return an empty set if there are no pending requests:
SELECT uid_from FROM friend_request WHERE uid_to = $uid;
You can run this query only for the current
loggedinuser or you’ll get an “Error 604,
Message: Can only lookup friend requests for logged in user” (see
600 Errors for more information).