从Facebook重定向网址中删除'#_ = _' [英] Remove '#_=_' from the Facebook redirect URL

查看:98
本文介绍了从Facebook重定向网址中删除'#_ = _'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 https://developers.facebook.com/blog/post/552/ FB Graph API现在将 _ = _ 哈希附加到重定向到 redirect_uri 未设置。但是,即使我的电话指定了 redirect_uri ,仍然附加它。

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.

FB返回后再次重新导向到我的网站,如何让FB停止附加哈希?

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

PS - 哈希破坏backbone.js,我需要它。这不只是一个宠物小便。

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

推荐答案

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

显然,Facebook Graph API文档不正确,并且已经提交了一个错误。悲伤的脸。

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

我的黑客修复是为了覆盖服务器端的重定向,并用我自己的哈希替换,以使FB哈希不包括在重定向(in红宝石)。

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

这篇关于从Facebook重定向网址中删除'#_ = _'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆