title: twitteroauth : Notice: Undefined index: oauth_token in sometimes working sometimes not
body: <p>so I tried using <a href="https://github.com/abraham/twitteroauth/blob/master/twitteroauth/twitteroauth.php" rel="nofollow noreferrer">https://github.com/abraham/twitteroauth/blob/master/twitteroauth/twitteroauth.php</a></p>
  
  <p>and sometimes I get :
  Notice: Undefined index: oauth_token in /myweb/twitteroauth/twitteroauth.php on line 80</p>
  
  <p>Notice: Undefined index: oauth_token_secret in /myweb/twitteroauth/twitteroauth.php on line 80</p>
  
  <p>but sometimes it just run (confused ??)</p>
  
  <p>the code in the twitteroauth.php line 80 :</p>
  
  <pre><code>function getRequestToken($oauth_callback) {
    $parameters = array();
    $parameters['oauth_callback'] = $oauth_callback; 
    $request = $this-&gt;oAuthRequest($this-&gt;requestTokenURL(), 'GET', $parameters);
    $token = OAuthUtil::parse_parameters($request);
    $this-&gt;token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
    //exit(print_r($request));
    return $token;
  }
  </code></pre>
  
  <p>so as u can see above I tried </p>
  
  <pre><code> exit(print_r($request));
  </code></pre>
  
  <p>the result was sometimes :</p>
  
  <pre><code>1
  </code></pre>
  
  <p>(error notice occurred)</p>
  
  <p>and sometimes :</p>
  
  <pre><code>oauth_token=KzpRdIBm8inptvd3Xi254QUEsdf4f5eyO1XZyjW7xVU&amp;oauth_token_secret=lmNl1rnBmR6palxHmufartersd0ivLabi5k&amp;oauth_callback_confirmed=true1
  </code></pre>
  
  <p>(no error notice)</p>
  
  <p>this is making me insane, can someone tell me what is the problem here ?</p>
  
  <p>I tried looking at this thread : <a href="https://stackoverflow.com/questions/3828793/twitter-oauth-geting-undefined-index-oauth-token-secret-in?rq=1">twitter oauth :geting undefined index: oauth_token_secret in</a></p>
  
  <p>but doesn't help me :(</p>
  
  <p>Thanks in advance !!</p>