cordova-plugin-facebook-connect / cordova-plugin-facebook-connect

Use the latest Facebook SDK in your Cordova and Ionic projects
Other
63 stars 90 forks source link

Login error there is an error in logging you into this application. please try again later #108

Closed krishna711 closed 2 years ago

krishna711 commented 2 years ago

Hi, I am facing login issue with release version of the ionic app. Please help in debugging if anyone else faced same issue and resolved.

This issue occur when native app is installed. If native app is uninstalled then login flow works fine using chrome browser.

image

This is only happening with release build. Debug build works fine with native app and without native app using chrome browser.

Added debug and release key hashes in facebook developer settings. Generated key hash from windows using specific openssl version given in troubleshooting page. Facebook developer setting deep link is ON.

Thanks for the help in advance.

lucasgalli commented 2 years ago

I am facing this issue too

krishna711 commented 2 years ago

I fixed it by importing login behavior and force plugin to use web_view only instead of using native app. This is not ideal fix and should be consider temporary fix. I hope over time we will have correct solution.

import com.facebook.login.LoginBehavior; // add on top add below lines.

image

krishna711 commented 2 years ago

This issue has resolved. Closing this issue.

Note for anyone facing this issue even after adding release key hashes in facebook developer settings.

I was doing big mistake and lost many hours testing this without luck. I was testing release signed build directly in emulator and device. The result was above error. Then I decide to upload in play store and check the build as internal beta test in closed circle without open to public user. The logins were working just fine.

If you are facing same issue test build in playstore and check if issue resolved.