function _fb_session_cb in Drupal for Facebook 5
File
- ./
fb.module, line 487
Code
function _fb_session_cb() {
global $fb, $fb_app;
global $user;
drupal_set_message("_fb_session_cb" . dpr($_REQUEST, 1));
$output = '<p>' . t('You are logged in as local user !username, with Facebook user id %fbu.', array(
'!username' => theme('username', $user),
'%fbu' => fb_get_fbu($user),
)) . '</p>';
$output .= '<p>' . l(t('Request an infinite session key.'), 'http://www.facebook.com/code_gen.php?v=1.0&api_key=' . $fb_app->apikey) . '</p>';
$output .= drupal_get_form('fb_session_key_form');
$output .= '<p>' . t('Current session key: %key', array(
'%key' => htmlentities($fb->api_client->session_key),
)) . "</p>\n";
return $output;
}