删除“#_=_”来自 Facebook 重定向 URL
根据 https://developers.facebook.com/blog/post/552/现在,当未设置 redirect_uri
时,FB Graph API 会将 _=_
哈希附加到它重定向回的 URL 末尾。但是,即使我的调用指定了 redirect_uri
,它仍然会附加它。
FB 返回我的网站后,如果没有再次重定向,如何让 FB 停止附加哈希值?
PS - 哈希正在破坏backbone.js,我需要它消失。这不仅仅是一个小问题。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://developers.facebook.com/bugs/196125357123225
显然 Facebook Graph API 文档不正确,并且已修复错误已提交。悲伤的脸。
我的黑客修复是覆盖服务器端的重定向并用我自己的哈希值替换哈希值,以便 FB 哈希值不包含在重定向中(在 ruby 中)。
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).