title: Remove ?state= from URL when user logs into Facebook app
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11223716/why-does-my-url-show-domain-com-state-5a02-instead-of-just-domain-com">Why does my url show domain.com/?state=5a02&hellip; instead of just domain.com?</a>  </p>
  </blockquote>
  
  
  
  <p>I've asked this question previously but I was far too vague. When a user logs into my Facebook web application, the URL ends in both <code>?state=</code> and <code>&amp;code=</code>. For example,</p>
  
  <pre><code>http://example.com/?state=asfsfs05sfd&amp;code=afsafaf98790saf 
  </code></pre>
  
  <p>How would I be able to remove that to give only <code>http://example.com</code>?</p>
  
  <p>I've read this tutorial: <a href="https://stackoverflow.com/questions/7012801/php-remove-code-param-in-facebook-app-url">php - remove &quot;code&quot; param in facebook app URL</a> </p>
  
  <p>Is my authentication process incomplete?</p>