/** * Store uid and token for the active user * * @param User $user * @return void */ public static function setSessionUser(UserModel $user) { self::$uid = $user->getID(); self::$token = $user->get_facebook_token(); self::$user = $user; self::getClient()->set_user(self::$uid, self::$token); }