admin管理员组文章数量:1289986
I have this log in script
$('#getFbImg').click(function () {
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
getPermissions(uid);
getUserAlbums(uid);
getUserUploads(uid);
}
else if (response.status === 'not_authorized') {
// the user is logged in to Facebook,
// but has not authenticated your app
}
else {
// the user isn't logged in to Facebook.
FB.login(function(response) {
if (response.authResponse) {
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
getPermissions(uid);
getUserAlbums(uid);
getUserUploads(uid);
} else {
console.log('User cancelled login or did not fully authorize.');
}
}, {scope: 'public_profile,user_photos'});
}
});
});
which asks the user to log in in order to continue. The popup window works fine, logs in fine, but the permissions dont seem to be registered. The very weird part is that for my account (which is also the admin in the app) was asked for the permissions, but every other account is not. here is a picture with the permissions object
edit: if I add another permission to the scope eg user birthday, my account gets asked to accept the access of the new permission, but no other account is asked for this.
2nd edit: i added a few other administrator accounts to check if it is because i am the administrator, and i still get the permission problem, the application does not give access to their user_photos, but it still gives to my account
I have this log in script
$('#getFbImg').click(function () {
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
getPermissions(uid);
getUserAlbums(uid);
getUserUploads(uid);
}
else if (response.status === 'not_authorized') {
// the user is logged in to Facebook,
// but has not authenticated your app
}
else {
// the user isn't logged in to Facebook.
FB.login(function(response) {
if (response.authResponse) {
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
getPermissions(uid);
getUserAlbums(uid);
getUserUploads(uid);
} else {
console.log('User cancelled login or did not fully authorize.');
}
}, {scope: 'public_profile,user_photos'});
}
});
});
which asks the user to log in in order to continue. The popup window works fine, logs in fine, but the permissions dont seem to be registered. The very weird part is that for my account (which is also the admin in the app) was asked for the permissions, but every other account is not. here is a picture with the permissions object
edit: if I add another permission to the scope eg user birthday, my account gets asked to accept the access of the new permission, but no other account is asked for this.
2nd edit: i added a few other administrator accounts to check if it is because i am the administrator, and i still get the permission problem, the application does not give access to their user_photos, but it still gives to my account
Share Improve this question edited Oct 10, 2014 at 7:35 eidyia 13 bronze badges asked May 13, 2014 at 8:34 hahahahahaha 1,0371 gold badge18 silver badges32 bronze badges1 Answer
Reset to default 8I guess you're using the Graph API v2.0, and haven't yet had your user_likes
and user_photos
permissions approved for your app: https://developers.facebook./docs/apps/changelog#v2_0_permissions
Apps using Facebook Login that require more than public_profile (default), email and user_friends will require review by Facebook in order to request these permissions from people.
Have a look at https://developers.facebook./docs/apps/review for the Review process.
本文标签: javascriptFacebook api permissions scope issueStack Overflow
版权声明:本文标题:javascript - Facebook api permissions scope issue - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741419126a2377699.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论