Authentication 设置中的权限不';与登录对话框中的不匹配
对于我的应用程序,我需要用户的生日和电子邮件地址。所以我设置了权限! 在预览中,它可以正常工作: 但在实际的登录对话中,它不是 因此,我没有得到许可。我现在该怎么办 代码:这基本上是facebook刚开始的时候Authentication 设置中的权限不';与登录对话框中的不匹配,authentication,permissions,facebook-login,Authentication,Permissions,Facebook Login,对于我的应用程序,我需要用户的生日和电子邮件地址。所以我设置了权限! 在预览中,它可以正常工作: 但在实际的登录对话中,它不是 因此,我没有得到许可。我现在该怎么办 代码:这基本上是facebook刚开始的时候 window.fbAsyncInit = function() { FB.init({ // init the FB JS SDK appId : 'XXXXXXXX', // App ID from the App Dashboard chann
window.fbAsyncInit = function() {
FB.init({ // init the FB JS SDK
appId : 'XXXXXXXX', // App ID from the App Dashboard
channelUrl : 'http://nerdjokes.funpic.de/channel.html', // Channel File for x-domain communication
status : true, // check the login status upon init?
cookie : true, // set sessions cookies to allow your server to access the session?
xfbml : true // parse XFBML tags on this page?
});
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
loggedIn();
} else if (response.status === 'not_authorized') {
login(); //user hast not authorized the app. Display the dialogue
} else {
login();
}
});
};
function login() {
FB.login(function(response) {
if (response.authResponse) {
// connected
} else {
// cancelled
}
});
你能发一些代码吗。这个问题有点含糊不清。@War10ck好吧,代码不多,但我会编辑它,等等