Facebook Login does not popup oauth dialog?

倾然丶 夕夏残阳落幕 提交于 2019-12-13 05:17:50

问题


I'm very sure that my app is not in Development Mode !

but the problem is still occur.

Has any good idea ?

below is the setting of my fb app.

when I use Fb.Login() method, and scope the permission that I needed.

I found the problem that when I use account ( this account is also the fb app admin )

to login, everything is be work including login dialog and oauth dialog ,

but when I use another account ( General account )

the login dialog is work but OAuth Dialog is not work .

I've tried another account ( General account ), it had the same situation,

Only when I use the account which is also the fb app owner account would be work.

Any Ideas ?

Below is the code...

FB.login(function (response) {
if (response.authResponse) {
    alert('success !') ;
} else {
    alert(' faild ! ');
}
}, { scope: "publish_actions" });

回答1:


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.

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

Basic login should still work without approval, but publish_actions will not be included without review.



来源:https://stackoverflow.com/questions/25422936/facebook-login-does-not-popup-oauth-dialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!