roughike / flutter_facebook_login

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

App crashes with java.lang.IllegalStateException #140

Open GervaisYO opened 5 years ago

GervaisYO commented 5 years ago

Hi,

i'm currently using flutter_facebook_login 2.0.1. But for some user the app crashed when they try to login with facebook. This is the stack trace that we see in the google logs:

Caused by: java.lang.IllegalStateException: at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply (DartMessenger.java:124) at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success (MethodChannel.java:204) at com.roughike.facebooklogin.facebooklogin.FacebookLoginResultDelegate.finishWithResult (FacebookLoginResultDelegate.java:58) at com.roughike.facebooklogin.facebooklogin.FacebookLoginResultDelegate.onCancel (FacebookLoginResultDelegate.java:43) at com.facebook.login.LoginManager.finishLogin (LoginManager.java:703) at com.facebook.login.LoginManager.onActivityResult (LoginManager.java:245) at com.facebook.login.LoginManager$1.onActivityResult (LoginManager.java:174) at com.facebook.internal.CallbackManagerImpl.onActivityResult (CallbackManagerImpl.java:92) at com.roughike.facebooklogin.facebooklogin.FacebookLoginResultDelegate.onActivityResult (FacebookLoginResultDelegate.java:53) at io.flutter.app.FlutterPluginRegistry.onActivityResult (FlutterPluginRegistry.java:222) at io.flutter.app.FlutterActivityDelegate.onActivityResult (FlutterActivityDelegate.java:142) at io.flutter.app.FlutterActivity.onActivityResult (FlutterActivity.java:142) at com.chatetyamo.MainActivity.onActivityResult (MainActivity.java:40) at android.app.Activity.dispatchActivityResult (Activity.java:6510) at android.app.ActivityThread.deliverResults (ActivityThread.java:3710)

Could someone please help with this issue?

Best regards Gervais

oliverbytes commented 5 years ago

I'm getting the same issue.

garbirel94 commented 5 years ago

I'm getting the same issue.

garbirel94 commented 5 years ago

anything update?

talhakhan011 commented 4 years ago

facing same issue resolve it please

huydang284 commented 4 years ago

+1