title: Problem with Facebook login not matching CSRF state token
body: <p>I did some searches and I didn't find anything that was related to my problem.</p>
  
  <p>I'm currently trying to implement a Facebook login to my website and I'm having problems with the login authentication due to htaccess mod rewrite URLs?</p>
  
  <p>The code works perfectly and I get logged in if I use it without the mod rewrite rules like:</p>
  
  <pre><code>domain.com/view_webhosting.php?webhosting=name
  </code></pre>
  
  <p>But as soon as I go over to the mod rewrite URL </p>
  
  <pre><code>domain.com/webhosting-name/
  </code></pre>
  
  <p>Then it just doesnt work and throws a error "CSRF state token does not match one provided."</p>
  
  <p>in the htaccess file it looks like this</p>
  
  <pre><code>RewriteRule ^webhosting-([a-z_0-9-]+)/$ /view_webhosting.php?webhosting=$1 [L]
  </code></pre>
  
  <p>Anyone have a solution to a problem like this? I am using Facebook SDK v3.1.1</p>