You are here

function fbconnect_test_fb_session_submit in Facebook Connect 8.2

Same name and namespace in other branches
  1. 6.2 tests/fbconnect_test.module \fbconnect_test_fb_session_submit()
  2. 7.2 tests/fbconnect_test.module \fbconnect_test_fb_session_submit()

File

tests/fbconnect_test.module, line 58

Code

function fbconnect_test_fb_session_submit($form, &$form_state) {
  $session = array(
    'access_token' => $form_state['values']['access_token'],
  );
  $_SESSION['fbconnect_token'] = $session['access_token'];
}