function facebook_login_page in Facebook Connect 7.2
Same name and namespace in other branches
- 8.2 fbconnect_login/fbconnect_login.pages.inc \facebook_login_page()
2 calls to facebook_login_page()
- fbconnect_login_add_user_afterlogin_submit in fbconnect_login/
fbconnect_login.module - Add the user to the fbconnect_users table if they logged in with Facebook
- fbconnect_login_login_page in fbconnect_login/
fbconnect_login.pages.inc - Menu callback. Logs user into site or redirects.
File
- fbconnect_login/
fbconnect_login.pages.inc, line 200 - User pages callbacks for the fbconnect module.
Code
function facebook_login_page(&$form, $form_state = array()) {
$params['scope'] = 'email';
$http_params = drupal_get_query_parameters();
$options = array(
'absolute' => TRUE,
'query' => array(
'token' => $http_params['token'],
),
);
if (module_exists('securepages') && securepages_match('fbconnect/authorize')) {
$options['https'] = TRUE;
}
$redirect_uri = url('fbconnect/authorize', $options);
drupal_goto($redirect_uri);
}