function _fbconnect_get_user_fbuid in Facebook Connect 6.2
Returns fbuid by uid
Parameters
int $uid: Drupal user id
Return value
int The Drupal user ID.
4 calls to _fbconnect_get_user_fbuid()
- FbconnectTestCase::testLogin in tests/
fbconnect.test - @todo.
- fbconnect_get_fbuid in ./
fbconnect.module - Check facebook session.
- fbconnect_redirect_submit in ./
fbconnect.module - Redirects the user to the account linking page. @todo refactor it
- fbconnect_register in ./
fbconnect.module - Store user into table fbconnect
File
- ./
fbconnect.module, line 557 - Integration with Facebook Connect API.
Code
function _fbconnect_get_user_fbuid($uid) {
if ($uid) {
$query = "SELECT fbuid FROM {fbconnect_users} where uid = %d";
return db_result(db_query($query, $uid));
}
}