function fb_facebook_user in Drupal for Facebook 6.2
Same name and namespace in other branches
- 5.2 fb.module \fb_facebook_user()
- 5 fb.module \fb_facebook_user()
- 6.3 fb.module \fb_facebook_user()
- 7.4 fb_devel.module \fb_facebook_user()
- 7.3 fb.module \fb_facebook_user()
Returns the facebook user id currently visiting a canvas page, or if set_user has been called. Unlike fb_get_fbu(), works only on canvas pages or when infinite session has been initialized.
16 calls to fb_facebook_user()
- fb_app_user in ./
fb_app.module - Implementation of hook_user.
- fb_connect_form_alter in ./
fb_connect.module - fb_connect_init_js in ./
fb_connect.module - Add javascript to a facebook connect page.
- fb_devel_info in ./
fb_devel.module - fb_form_friend_selector_process in ./
fb_form.module - A selector allowing the user to choose from their friends. This must behave differently depending on whether the form is displayed on an FBML canvas page, iframe canvas page, or regular HTML page.
1 string reference to 'fb_facebook_user'
- fb_user_load in ./
fb.module
File
- ./
fb.module, line 299
Code
function fb_facebook_user($fb = NULL) {
if (!isset($fb)) {
$fb = $GLOBALS['_fb'];
}
if (!$fb) {
return;
}
$fbu = $fb
->get_loggedin_user();
if (isset($fb->api_client->error_code)) {
if (fb_verbose()) {
watchdog('fb', 'Failed to get Facebook user id. detail: !detail', array(
'!detail' => print_r($_REQUEST, 1),
), WATCHDOG_ERROR);
}
}
return $fbu;
}