keppelen / react-facebook-login

A Component React for Facebook Login
1.18k stars 406 forks source link

unable to login in Facebook browser in Android mobile #294

Open bfintal opened 4 years ago

bfintal commented 4 years ago

I’ve experimented with things and found out that doing a disableMobileRedirect={ true } fixes the issues with logging in on mobile.

While it does work both in desktop and mobile, it doesn’t work in one scenario. If I’m in the Facebook app on an Android device and open a link to my site, the login button doesn’t work. If you open it up in a browser, it works, but doesn’t if it’s the built-in browser.

Anyone have any fix for this?

CoSNaYe commented 4 years ago

After using all the methods I could find in the issues and SOF and even tried to get rid of this library and used the official Facebook SDK to implement Facebook login, here is my suggestion: Using page redirection is the only solution that works for the web pages opened inside Android Facebook app.

This weird behavior exists happens in the official FB SDK as well. No-redirection-login works for some apps like Slack, but not for some apps like FB apps and LINE.

After trying for couple of hours, I haven't found a workable solution for that. So, although the page redirection causes extra issues to handle, it seems the only universal solution now.

alcidesbsilvaneto commented 4 years ago

disableMobileRedirect={true} solved it for me.