function _get_user_fbuid in Facebook Connect 6
Same name and namespace in other branches
- 8.2 fbconnect_login/fbconnect_login.module \_get_user_fbuid()
- 7.2 fbconnect_login/fbconnect_login.module \_get_user_fbuid()
Returns fbuid by uid
Parameters
Int $uid: Drupal user id
Return value
Int $fbuid
3 calls to _get_user_fbuid()
- fbconnect_get_fbuid in ./
fbconnect.module - Check facebook session.
- fbconnect_redirect_submit in ./
fbconnect.module - Redirects the user to the account linking page.
- fbconnect_register in ./
fbconnect.module - Store user into table fbconnect
File
- ./
fbconnect.module, line 733
Code
function _get_user_fbuid($uid) {
if ($uid) {
$query = "SELECT fbuid FROM {fbconnect_users} where uid = %d";
return db_result(db_query($query, $uid));
}
}