Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove '#_=_' from the Facebook redirect URL [duplicate]

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.

like image 676
Brenden Avatar asked Oct 07 '11 23:10

Brenden


1 Answers

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).

like image 134
Brenden Avatar answered Oct 06 '22 02:10

Brenden