capacitor-community / facebook-login

Facebook Login support
MIT License
103 stars 55 forks source link

Can't switch to live mode for Web Sign In #131

Open JeswinSunsi opened 1 year ago

JeswinSunsi commented 1 year ago

Good day,

I'm implementing FB Sign In in my capacitor-vue web app. Everything works fine when the App Mode is set to Development in the Facebook App settings, but as I switch to Live (production) mode, I'm unable to Sign in, since signing in requires a secure connection (HTTPS). Is there any workaround for this issue? Is it possible to somehow make Capacitor connect to https://localhost:PORT than http://localhost?

1 - Development/Live toggle 2, 3 - Error shown when .login() is called

image image image

Thank you.

JeswinSunsi commented 1 year ago

This is weird. Even in Development mode, the first login is unsuccessful and returns the same error. However, when I call the same function again immediately afterwards, it somehow works and returns me a connected response.

image

Possible Facebook-side bug?