Flutter_facebook_login: Facebook not login with install facebook app in flutter

Created on 23 Mar 2020  Â·  13Comments  Â·  Source: roughike/flutter_facebook_login

I had installed a Facebook login in my flutter app . and everything alright. but when install Facebook app. login square show and when press login nothing does and not log in. why?

Most helpful comment

I found work round - redirect to FB web view like this:
final facebookSignIn = FacebookLogin();
facebookSignIn.loginBehavior = FacebookLoginBehavior.webOnly;
...
Now it works!

All 13 comments

Também estou tendo o mesmo problema, só funciona como web.

same issue

i just tested this usecase on iOS device and the login works fine.
Is this error occuring on android devices or on iOS devices as well?

I am curious because i received an email from facebook, complaining about a non working login.

Você tem que vincular sua conta do Facebook na conta de desenvolvedor no
console do Facebook e depois o hash da sua aplicação e funciona.

Obrigado.

Em dom, 29 de mar de 2020 19:05, smocken78 notifications@github.com
escreveu:

i just tested this usecase on iOS device and the login works fine.
Is this error occuring on android devices or on iOS devices as well?

I am curious because i received an email from facebook, complaining about
a non working login.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/roughike/flutter_facebook_login/issues/254#issuecomment-605709019,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALKSGPG5UC4QOIEGUYR3D6DRJ7A2RANCNFSM4LSBIS5Q
.

Same issue here. Not working on android. Please fix this - we need to publish our app and this is must have.

I found work round - redirect to FB web view like this:
final facebookSignIn = FacebookLogin();
facebookSignIn.loginBehavior = FacebookLoginBehavior.webOnly;
...
Now it works!

Same problem. On ios it uses Webview, and it is ok.
But on android it doesn't use the installed Facebook app.

@danilof Your workarround works. Btw, this error appear when I have the Facebook app installed to my device and I'm login to it.

image0

Same problem :(

hi Guys i solved this problem You need to get Key hash From SHA-1 Key and all working fine

For iOS, I found a working solution by add some extra code to AppDelegate.swift

override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
         if url.scheme == "fbXXXXXXXXX" {
                return ApplicationDelegate.shared.application(app, open: url, options: options)
         }
        .....
    }

Relace XXXXXXXXX with your facebook ID

Edit AppDelegate.swift


import FBSDKCoreKit

override func application(_ application: UIApplication, open url: URL,
                                    options: [UIApplication.OpenURLOptionsKey : Any]) -> Bool {
            if url.scheme == "fbXXXXXXXXXXXXXX" {
                return ApplicationDelegate.shared.application(application,open:url,options:options)
             }
          .....
}

Is there any update for this issues on android/ios ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fayaz07 picture fayaz07  Â·  4Comments

zainzafar90 picture zainzafar90  Â·  6Comments

nsmith1024 picture nsmith1024  Â·  6Comments

happyharis picture happyharis  Â·  8Comments

kaetemi picture kaetemi  Â·  4Comments