You are here

function fb_me in Drupal for Facebook 7.4

Helper function for the common fb_graph('me').

1 call to fb_me()
fb_user_form_user_register_form_alter in ./fb_user.module
Implements hook_form_alter().

File

./fb.module, line 1539

Code

function fb_me() {
  if ($token = fb_user_token()) {
    try {
      $me = fb_graph('me', $token);
      return $me;
    } catch (Exception $e) {
      fb_log_exception($e, t('Failed to query "me".'));
    }
  }
}