Facebook登录不弹出oauth对话框? [英] Facebook Login does not popup oauth dialog?
问题描述
我非常确定我的应用程序不在开发模式!
I'm very sure that my app is not in Development Mode !
但问题仍然存在。
有什么好主意?
以下是我的fb应用程序的设置。
below is the setting of my fb app.
当我使用Fb.Login()方法,并且我需要的权限范围。
when I use Fb.Login() method, and scope the permission that I needed.
我发现问题,当我使用帐户(这个帐号也是fb应用程序管理员)
I found the problem that when I use account ( this account is also the fb app admin )
登录,一切都正常工作,包括登录对话框和oauth对话框,
to login, everything is be work including login dialog and oauth dialog ,
但是当我使用其他帐户(一般帐户)
but when I use another account ( General account )
登录对话框工作,但OAuth对话框不起作用。
the login dialog is work but OAuth Dialog is not work .
我尝试过另一个帐户(一般帐户),它有相同的情况,
I've tried another account ( General account ), it had the same situation,
只有当我使用也是fb的帐户应用程序所有者帐户将工作。
Only when I use the account which is also the fb app owner account would be work.
任何想法?
以下是代码...
FB.login(function (response) {
if (response.authResponse) {
alert('success !') ;
} else {
alert(' faild ! ');
}
}, { scope: "publish_actions" });
推荐答案
可能是因为您的App不在真实的服务器上在localhost上。尝试将其上传到真实的服务器(使用公共域),并将域添加到应用程序域字段。
Probably because your App is not on a real server but on "localhost". Try uploading it to a real server (with a public domain) and add the domain to the "App Domains" field too.
另外,请记住 publish_actions
只适用于在App Settings中具有角色的用户。对于其他用户,您需要现在进行审查过程: https://developers.facebook.com / docs / apps / review
Also, keep in mind that publish_actions
will only work for Users with a role in the App Settings. For other Users, you need to go through a review process now: https://developers.facebook.com/docs/apps/review
基本登录仍然可以正常工作,但 publish_actions
不会不包括审查。
Basic login should still work without approval, but publish_actions
will not be included without review.
这篇关于Facebook登录不弹出oauth对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!