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

筅森魡賤 提交于 2020-01-01 07:46:41

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/7693663/remove-from-the-facebook-redirect-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!