Remove '#_=_' from the Facebook redirect URL

Brenden picture Brenden · Oct 8, 2011 · Viewed 9.6k times · Source

According to https://developers.facebook.com/blog/post/552/ the FB Graph API now appends a _=_ hash to the end of the URL it redirects back to when redirect_uri is not set. However, it is still appending it even though my call specifies the redirect_uri.

Short of redirecting again after FB returns to my site, how can I get FB to stop appending the hash?

PS - the hash is breaking backbone.js and I need it gone. This isn't just a pet peeve.

Answer

Brenden picture Brenden · Oct 8, 2011

http://developers.facebook.com/bugs/196125357123225

Apparently the Facebook Graph API documentation is incorrect and a bug has been submitted. Sad face.

My hack fix was to override the redirect on the server side and replace the hash with my own so that the FB hash was not included in the redirect(in ruby).