有人可以结束“LEAVE APP”苦难! [英] Can someone please put an end to "LEAVE APP" misery!

查看:121
本文介绍了有人可以结束“LEAVE APP”苦难!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题已经被问到很多次了!并且没有回复/答案说明它应该如何工作!

This question has been asked many times everywhere! and there is no reply / answer that explains how it should work!

根据文档: 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

"https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL"

获得授权和必要的权限。而且,根据文档,这个URL将把用户带到一个带有两个按钮的窗口:

to get authorization and necessary permissions. And, according to the documentation, this URL will take user to a window with two buttons:

允许,不要允许 strong>

"Allow" , "Don't Allow".

另外,(再次根据文档)当用户点击不允许时,它会将用户重定向到具有错误代码的redirect_uri!

And, (again according to the docs) when user hits Don't Allow, it will redirect user to the redirect_uri with an error code!

但实际上,这个URL将用户带到一个窗口,在那里它有:

But in reality, this URL takes user to a window, where it there is:

允许 离开应用程序

人们一直在说 http://www.facebook.com/login.php?cancel_url ,但它不是在认证页面上说的,我找不到任何有关登录的文档.php终点,例如如何给予权限列表。

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!

感谢一下。

推荐答案

FB开发者论坛上的人解决了这个问题。

Someone on the FB developers forum resolved this issue.

基本上,如果你的redirect_uri像:http://apps.facebook.com/your_app/,它显示离开应用程序。如果该网址拥有您自己的域名(例如 http://yourdomain.com/fbapp/ ),则不会显示不允许

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"

这篇关于有人可以结束“LEAVE APP”苦难!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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