public auth_getSession ( string $auth_token ) : assoc | ||
$auth_token | string | the token returned by auth_createToken or passed back to your callback_url. |
return | assoc | array containing session_key, uid |
public function auth_getSession($auth_token)
{
$result = $this->call_method('facebook.auth.getSession', array('auth_token' => $auth_token));
$this->session_key = $result['session_key'];
if (isset($result['secret']) && $result['secret']) {
// desktop apps have a special secret
$this->secret = $result['secret'];
}
return $result;
}
public function auth_getSession($auth_token) { $result = parent::auth_getSession($auth_token); // This will be used as the standard session key $this->setDefaultServer($this->servers['default'], $result['session_key']); return $result; }