function fbconnect_get_info_from_fb in Facebook Connect 6
Same name and namespace in other branches
- 5 fbconnect.module \fbconnect_get_info_from_fb()
- 6.2 fbconnect.module \fbconnect_get_info_from_fb()
Query information from facebook user table.
Return value
array
1 call to fbconnect_get_info_from_fb()
- fbconnect_register_page in ./
fbconnect.pages.inc - Menu callback. Called when user perform facebook registration
File
- ./
fbconnect.module, line 798
Code
function fbconnect_get_info_from_fb($fbuid, $fields) {
if (facebook_client() && $fields) {
try {
$result = facebook_client()->api_client
->fql_query("SELECT {$fields} FROM user WHERE uid = {$fbuid}");
return $result[0];
} catch (Exception $e) {
$msg = 'Exception thrown while using fbconnect_get_info_from_fb : @code';
watchdog('fbconnect', $msg, array(
'@code' => $e
->getMessage(),
), WATCHDOG_WARNING);
}
}
}