You are here

function fb_get_uid in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 7.3 fb.module \fb_get_uid()

Given a facebook user id, learn the local uid, if any.

File

./fb.module, line 985
This is the core required module of Drupal for Facebook.

Code

function fb_get_uid($fbu, $fb_app = NULL) {
  $uid = NULL;
  if ($fbu) {
    $uid = fb_invoke(FB_OP_GET_UID, array(
      'fbu' => $fbu,
      'fb_app' => $fb_app,
    ));
  }
  return $uid;
}