facebook-android-sdk
facebook-android-sdk copied to clipboard
Clicking the cancel button on the login will open an empty page in separate browser
Checklist before submitting a bug report
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing Github issues
- [X] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [X] I've read the Code of Conduct
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
Java version
11.0.7
Android version
All Android Versions
Android SDK version
13.1.0
Installation platform & version
Gradle
Package
Login
Goals
It should get back to my app on cancel.

Expected results
It should not open any link or browser if user cancels the dialog. It should get back to my app.
Actual results
During Facebook login it shows a login dialog and when I click on Cancel, it opens a dead link with blank page. URL: https://lm.facebook.com/l.php?u=fbconnect%3A%2F%2Fsuccess%3Ferror%3Daccess_denied%26error_code%3D200%26error_description%3DPermissions%2Berror%26error_reason%3Duser_denied%26state%3D%257B%25220_auth_logger_id%2522%253A%25229c4018a5-d0fb-40ca-b866-6d173389e50f%2522%252C%25223_method%2522%253A%2522katana_proxy_auth%2522%257D&h=AT3vuLgamxGoMltlEaA9Uhpdd9Yz_ma2cIKYNShOjOsvC-mjYt6miRim57XZHH7Vmo2e9V-Z66ARiiFcmvE1olgfg59_hu1BfTVAkugRyPAOSjR9cPv3Je8sI6OJ8m-wR3ip
Steps to reproduce
Normal use of LoginButton in my app with facebook latest version Facebook SDK sdk-version-15.2.0
Code samples & details
// INSERT YOUR CODE HERE
The same bug for me in latest Facebook SDK v16.0.0. Any solution please?
Three identical issues reported. Problem is serious and should be fixed.
https://github.com/facebook/facebook-android-sdk/issues/1158
https://github.com/facebook/facebook-android-sdk/issues/1159
https://github.com/facebook/facebook-android-sdk/issues/1161
GIF VIDEO (click play to start):
