In js sdk, I directly call the login method as follows:
FB.login( function( response ) { if (response.status == 'connected') { } },{ scope: 'email,public_profile', return_scopes: true, auth_type: 'rerequest' });
On the server side, I use accesstoken to request user information on Facebook. If the letter is not provided, I return an error message informing the user that he needs to log in again and provide the email. When they press the login button again due to the auth_type: 'rerequest' part , they will be requested again for permissions.
source share