Using the plugin cordova-plugin-facebook4, I successfully implemented facebook login.
However, I need the email authorization to be “required” (meaning the user should not attempt login without giving facebook authorization to get his email)
If he doesn’t allow access to email, redirect to login.
This works well so far, BUT when he tries to connect again using facebook (to give him the chance to allow access to email this time), facebook is not asking again for authorization.
I have read online that native sdk make use of the “rerequest” or “reauthentication” callback / paramet.
But apparently all facebook cordova plugin do not have this extra callback/parameter feature.
I’m building a similar solution, but it really sounds like a “workaround”, and not exactly the native “re-authenticate” feature I would like to implement.
For now, it will do though.
If anyone has a more native approach, I would gladly welcome it.
Until then, thanks @mvrc