when i tried to add htaccess redirect on my site facebook login which was working earlier stopped working..
the error it shows is
Cross-site request forgery validation failed. The "state" param from the URL and session do not match.
here is rewrite code I've
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)$ apps.php?app_id=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)$ apps.php?app_id=$1&user_id=$2 [L]
when I use the above rewrite code FACEBOOK LOGIN is not working if I there is any for loop/while loop in my script. With out loops this rewrite code and FACEBOOK LOGIN works perfectly.