Possible Duplicate:
URL Fragment and 302 redirects
I am integrating Facebook login into my site. When Facebook redirects to my site with the code query parameter, there is a hash at the end http://myurl.com/code=xxx#_=_
When I then redirect from this url to another url at my site:
header('Location: http://myurl.com/home');
It keeps the hash tag and ends up as http://myurl.com/home#_=_
Is there a way to redirect without the hash or if anyone is familiar with Facebook a way to get it to stop adding the hash in the first place?
You can redirect on your server side PHP to a URL that includes its own hash. That's what I had to do a ruby app that uses backbone.js.
PS - I specified the redirect_uri
and FB still appended the stupid #_=_
string :/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With