Whenever I tried to add photos
permission on my scope it always giving this message while login:
Without photos
permission it is working perfectly. Here is my code:
document.getElementById('fb-login-btn').addEventListener('click', function() {
FB.login((response) => {
statusChangeCallback(response);
}, {scope: 'public_profile,photos', return_scopes: true}); //{scope: 'public_profile,email', return_scopes: true});
}, false);
I don't think the problem lies in code, because the same problem also occurred with default facebook login button
as well, when I added photos
permission. Any suggestions?
There is no permission called photos
.
user_photos
is what it is actually named.
https://developers.facebook.com/docs/permissions/reference/user_photos