requetTokenを取得しOAuth認証 index.php getRequestToken(); $_SESSION['TWITTER_REQUEST_TOKEN'] = serialize($token); $consumer->redirect(); } /* 以下 html部分 ...... */ 認証していない場合はクライアントからTwitterにOAuthでAPIをたたきrequestTokenを取得。 Twitterに認証をお願いしています。 accessTokenを取得する callback.php getAccessToken($_GET, unserialize($_SESSION['TWITTER_REQUEST_TOKEN'])); }catch (Exception $ex){ $ex->getMessage(); } $_SESSION['TWITTER_A