-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Why Facebook login always callback onCancel in android? #1390
Copy link
Copy link
Open
Labels
Description
Checklist before submitting a bug report
- I've updated to the latest released version of the SDK
- I've searched for existing Github issues
- I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- I've read the Code of Conduct
- This issue is not security related and can safely be disclosed publicly on GitHub
Java version
19.0.0
Android version
Android 35&36 has reproduced ;maybe all versions affected
Android SDK version
35
Installation platform & version
Maven facebook-login 18.0.3
Package
facebook-login
Goals
Facebook login works well
Expected results
Make sure accounts affcted can be logined by facebook login sdk。
Actual results
Some account never got onSuccess callback which got onCancel instead
Steps to reproduce
From today, my app always got FacebookCallback-->onCancel in some fb account。
It affect few account in production but never recover if happend;So what info should I provider to solve the probelm。
Code samples & details
LoginManager.getInstance().registerCallback(callbackManager,
object : FacebookCallback<LoginResult> {
override fun onSuccess(result: LoginResult) {
}
override fun onCancel() {
onAuthFailed("FacebookAuth onCancel", AuthFailedType.CANCEL)
}
override fun onError(error: FacebookException) {
}
})Reactions are currently unavailable