有人可以结束“离开应用程序”吗?苦难!
这个问题到处都被问过很多次了!并且没有回复/答案解释它应该如何工作!
根据文档: http://developers.facebook.com/docs/authentication/
画布应用程序应将用户重定向到
"https://www .facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL"
获取授权和必要的权限。并且,根据文档,此 URL 会将用户带到一个带有两个按钮的窗口:
“允许”、“不允许”。
并且,(再次根据文档)当用户点击 Don 时不允许,它会将用户重定向到带有错误代码的redirect_uri!
但实际上,这个 URL 将用户带到一个窗口,其中有:
“允许”、“离开应用程序”
人们一直在说使用“http://www.facebook.com/login.php?cancel_url",但这不是身份验证页面上所说的,我找不到有关“login.php”端点的任何文档,例如如何给出权限列表。
有人可以结束这种痛苦吗?
非常感谢...
This question has been asked many times everywhere! and there is no reply / answer that explains how it should work!
According to the documentation at: http://developers.facebook.com/docs/authentication/
A canvas app should redirect user to the
"https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL"
to get authorization and necessary permissions. And, according to the documentation, this URL will take user to a window with two buttons:
"Allow" , "Don't Allow".
And, (again according to the docs) when user hits Don't Allow, it will redirect user to the redirect_uri with an error code!
But in reality, this URL takes user to a window, where it there is:
"Allow", "Leave App"
People have been saying use "http://www.facebook.com/login.php?cancel_url", but it is not what it says on the authentication page, and I could not find any documentation about the "login.php" end point, e.g. how to give permission list.
Can someone please put an end to this misery!
Thanks a ton...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
FB 开发者论坛上有人解决了这个问题。
基本上,如果您的redirect_uri类似于:“http://apps.facebook.com/your_app/”,它会显示“离开应用程序”。如果网址有您自己的域(例如 http://yourdomain.com/fbapp/),则显示“不允许”
Someone on the FB developers forum resolved this issue.
Basically, if your redirect_uri is like: "http://apps.facebook.com/your_app/", it shows "leave app". If the url has your own domain (e.g. http://yourdomain.com/fbapp/) , than it shows "Don't Allow"