function fbconnect_get_user_info in Facebook Connect 6.2
Same name and namespace in other branches
- 8.2 fbconnect.module \fbconnect_get_user_info()
- 7.2 fbconnect.module \fbconnect_get_user_info()
Query information from facebook user table.
1 call to fbconnect_get_user_info()
- fbconnect_register_page in ./
fbconnect.pages.inc - Menu callback. Called when user perform facebook registration
File
- ./
fbconnect.module, line 721 - Integration with Facebook Connect API.
Code
function fbconnect_get_user_info($fields = array(), $fbuid = NULL) {
$params = array();
if (!$fbuid) {
$fbuid = fbconnect_get_fbuid();
}
if (is_array($fields) && count($fields)) {
$params['fields'] = join(',', $fields);
}
elseif ($fields) {
$params['fields'] = $fields;
}
if ($fbuid) {
return fbconnect_graph_query("/" . $fbuid, $params);
}
}