You are here

function fb_user_token_url in Drupal for Facebook 7.4

To configure this module, we need to send the user to the Fb app, in order to authorize it. The page we send them to explains the various permission options, then presents facebook's dialog for authorizing the permissions.

File

./fb.module, line 1111

Code

function fb_user_token_url() {
  $app = fb_get_app();
  $this_page = url(current_path(), array(
    'absolute' => TRUE,
  ));
  $url = url($app['base_url'] . '/fb_app/authorize/form', array(
    'query' => array(
      'redirect_uri' => $this_page,
      'site_name' => variable_get('site_name', ''),
    ),
  ));
  return $url;
}