roughike / flutter_facebook_login

A Flutter plugin for allowing users to authenticate with native Android & iOS Facebook login SDKs.
BSD 2-Clause "Simplified" License
405 stars 330 forks source link

Don't suggest adding `fbauth` to the application's query schemes #293

Open tp opened 4 years ago

tp commented 4 years ago

This fixes the redirect loop between the Safari ViewController (SFVC) and the Facebook app mentioned in https://github.com/roughike/flutter_facebook_login/issues/243

After that scheme is removed, the FB SDK seems to build another URL to open in the web view, which doesn't show a button to open the native FB app anymore. Hence the user just proceeds inside the SFVC with their account, and will be directed straight back to the host app, never taking a "detour" to the FB app.