You are here

function _fb_user_facebook_data in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 7.3 fb_user.module \_fb_user_facebook_data()
1 call to _fb_user_facebook_data()
fb_user_form_alter in ./fb_user.module
Implements hook_form_alter().

File

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

Code

function _fb_user_facebook_data($fb) {
  if ($fbu = fb_facebook_user($fb)) {
    try {
      $data = fb_api($fbu);
      return $data;
    } catch (FacebookApiException $e) {
      fb_log_exception($e, t('Failed lookup of %fbu.', array(
        '%fbu' => $fbu,
      )));
    }
  }
}