Clancey / simple_auth

The Simplest way to Authenticate in Flutter
MIT License
352 stars 108 forks source link

redirect from facebook not being catched #163

Open PedroRTomas opened 3 years ago

PedroRTomas commented 3 years ago

Hello, I successfully implement the login and media fetch from Instagram and was trying to do something similar using implemented Facebook API functionalities, however, that is not being possible:

Issue

After login with a valid Facebook account, the page opens the redirect Url instead of getting the needed parameters present in the URL and returning the user object.

Code to reproduce

https://www.dropbox.com/s/fv8pm61tqq3mjw7/facebook_login.dart?dl=0 (If you have any problems accessing the code, please let me know)

Expected Behaviour

The code on the URL is caught and then the normal flow of exchanging the code for the token is triggered.

More useful information

AndroidManifest.xml image

pubspec.yaml image

Any thoughts?

Thanks in advance, Pedro Tomás

scadot commented 2 years ago

I have the same problem. Instagram works fine but the redirection with facebook doesn't work. The redirect URL is opened.

@PedroRTomas , how did you manage this problem ? Any solution or workaround?