php - Facebook login request permission not now button -
in facebook api when have user login site using facebook sdk requests permissions user, depending on doing email, or users_friends requested. if user hits "not now" far can tell same hitting decline. there way make ask again if user hits not option? right user logs facebook, if hit not return nothing site (which fine handle that) if user hits login facebook again automatically fails them rather prompting accept or not again. anyway bypass this? or @ least alert user what's going on?
as mentioned @cbroe, per documentation:
it's ok ask person once grant app permissions they've declined. should have screen of education on why think should grant permission , re-ask. if use method described in previous section login dialog won't ask permission.
this because once has declined permission, login dialog not re-ask them unless explicitly tell dialog you're re-asking declined permission.
you can achieve passing auth_type: rerequest
flag:
fb.login( function(response) { console.log(response); }, { scope: 'user_likes', auth_type: 'rerequest' } );
however, it's responsibility insure user-experience , educate user before showing dialog again since may introduce infinite loop (user declining , asking again), against our policies platform policy 7.5:
if person declines permission, can prompt them again after indicate intent grant permission.
Comments
Post a Comment