I need to retrieve info about a specific user.
$uids = array('12345'); $fields = array('first_name','last_name'); $users = $facebook->api_client->users_getInfo($uids, $fields);
You can query on any of the fields that make up the user table,
which are documented in Figure 9-1.
You might run into some of the privacy restrictions built-in to
Platform, which limit the
significant_other_id fields to being visible
to an app only when it has been added by a user. Users also have the
option to limit the visibility of all fields except
If you’d prefer to use FQL to access users, the equivalent query is:
SELECT uid, name, birthday FROM user WHERE uid IN ($uids)
See User Table for more information.