You are here

function fb_user_get_local_user in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 5.2 fb_user.module \fb_user_get_local_user()
  2. 5 fb_user.module \fb_user_get_local_user()
  3. 6.2 fb_user.module \fb_user_get_local_user()
  4. 7.3 fb_user.module \fb_user_get_local_user()

Given an app and facebook user id, return the corresponding local user.

Parameters

$fbu: User's id on facebook.com

$fb_app: Historically, this method took the app details into account when mapping user ids. Presently, this parameter is not used.

7 calls to fb_user_get_local_user()
fb_user_create_local_user in ./fb_user.module
Creates a local Drupal account for the specified facebook user id.
fb_views_handler_filter_profile_tab::query in fb_views/fb_views_handler_filter_profile_tab.inc
_fb_user_create_local_account in ./fb_user.module
Helper function to create local account for the currently authorized user.
_fb_user_create_map in ./fb_user.module
Create a map linking the facebook account to the currently logged in local user account.
_fb_user_create_map_by_email in ./fb_user.module

... See full list

File

./fb_user.module, line 938
This module manages relations between local Drupal user accounts and their accounts on facebook.com.

Code

function fb_user_get_local_user($fbu, $fb_app = NULL) {
  if ($uid = _fb_user_get_uid($fbu, $fb_app)) {
    return user_load($uid);
  }
}