Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling Express Login #27

Merged
merged 2 commits into from Nov 5, 2020
Merged

Conversation

atrope
Copy link
Contributor

@atrope atrope commented Sep 4, 2020

Description of changes:
This is a non-breaking change.

Just giving developers the chance to authenticate the user automatically if user already was logged into the app.

Just call FacebookLogin().expressLogin() and it will return a FacebookLoginResult just like it does when user clicks the button.

Android only for now (It depends on Facebook's iOS SDK), on iOS i've made it so it always returns "cancel" instead of "error" or "not implemented" but IMHO Users should have a logic inside their app to use it only on Android.

Documentation:
https://developers.facebook.com/docs/facebook-login/android/#expresslogin

@atrope
Copy link
Contributor Author

atrope commented Sep 4, 2020

Here is a gif explaining how it works(in my app I did that if User is opening the app and unlogged i will try to log him with expressLogin, if he is unlogging i will not)

login-FB

@greymag
Copy link
Contributor

greymag commented Sep 15, 2020

Hey! Sorry for the late answer. I'm pretty busy right now, but I'll take a look.

@atrope
Copy link
Contributor Author

atrope commented Oct 27, 2020

@greymag had the chance to take a look?

@atrope
Copy link
Contributor Author

atrope commented Oct 27, 2020

We are using in a 10M MAU in production and everything is great with no errors being reported.

@greymag
Copy link
Contributor

greymag commented Oct 28, 2020

Hey! I apologize for that delay, I'll merge your PR by the end of the week

Copy link
Contributor

@greymag greymag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! Thanks for the PR, it's great. Can you please make a few small changes and I will merge it.

ios/Classes/SwiftFlutterLoginFacebookPlugin.swift Outdated Show resolved Hide resolved
lib/src/facebook_login.dart Show resolved Hide resolved
lib/src/facebook_login.dart Show resolved Hide resolved
@atrope
Copy link
Contributor Author

atrope commented Nov 3, 2020

@greymag applied changes

@greymag greymag merged commit 0ba0c20 into Innim:master Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants