capacitor-community / facebook-login

Facebook Login support
MIT License
103 stars 54 forks source link

Login error with {"code":"UNIMPLEMENTED"} #55

Closed selcukbeyhan closed 3 years ago

selcukbeyhan commented 3 years ago

Hello, for the following code below: `const FACEBOOK_PERMISSIONS = ['email']; Plugins.FacebookLogin.login({permissions: FACEBOOK_PERMISSIONS}).then((response:FacebookLoginResponse)=> { console.log('Login successful'); console.log(JSON.stringify(response));

            }).catch((error)=>{
                console.log('Login error');
                console.log(JSON.stringify(error));
            });`

I get following error in XCode when I run on simulator. I didn't test on a device. (with browser - ionic serve - the login works) ⚡️ [log] - Login error ⚡️ [log] - {"code":"UNIMPLEMENTED"}

I was following the sample here: https://enappd.com/blog/facebook-login-in-capacitor-apps-with-ionic-angular/128/

What can be the reason of this error message?

Thanks.

selcukbeyhan commented 3 years ago

It seems, I was following the Capacitor v3 instructions. Then I realized the README for Capacitor v2. I followed the instructions there. It works now.