title: Twitter OAUTH returns an empty array
body: <p>I am working on twitter authentication, everything seems to work well till i get to <code>getAccessToken</code> which returns <code>Array ( [ ] =&gt; )</code>.</p>
  
  <p>What I have done:</p>
  
  <ol>
  <li><p>First phase:</p>
  
  <pre><code>$connection = new TwitterOAuth('xxxxxxxx','xxxxxxxx');
  
  $temporary_credentials = $connection-&gt;getRequestToken('http://example.com/profile.php?passurl=1');
  
  $redirect_url = $connection-&gt;getAuthorizeURL($temporary_credentials);
  
  $_COOKIE['oauth_token'] = $temporary_credentials['oauth_token'];
  
  $_COOKIE['oauth_token_secret'] = $temporary_credentials['oauth_token_secret'];
  
  header("Location: $redirect_url");
  </code></pre></li>
  <li><p>second phase (this is where i encounter the problem)</p>
  
  <pre><code>$connection =
          new TwitterOAuth(
                  'xxxxxxxxxx',
                  'xxxxxxxxxx',
                  $_COOKIE['oauth_token'],
                  $_COOKIE['oauth_token_secret']
                  ); 
  $token_credentials = $connection-&gt;getAccessToken();
  </code></pre></li>
  </ol>
  
  <p>I intend saving the <code>$token_credentials</code> values in the database but it returns an empty array: <code>Array ( [ ] =&gt; )</code></p>
  
  <p>What am i not getting right?</p>