capacitor-community / facebook-login

Facebook Login support
MIT License
103 stars 54 forks source link

Doesn't work after capacitor 3.0.0-beta.2 #36

Closed leo6104 closed 3 years ago

leo6104 commented 3 years ago

Describe the bug A clear and concise description of what the bug is. image It seems FacebookLogin variable treated as web plugin.

To Reproduce Install 3.0.0-beta.2 core / android / ios and this plugin.

Expected behavior It should be Proxy object.

Desktop (please complete the following information):

Additional context after capacitor 3.0.0-beta.2, registerWebPlugin function is deprecated.

Now, we should use registerPlugin function like this.

import { registerPlugin } from '@capacitor/core';
const FacebookLogin = registerPlugin<FacebookLoginPlugin>('FacebookLogin', {
  web: new FacebookLoginWeb(),
});
export { FacebookLogin };
leo6104 commented 3 years ago

https://github.com/capacitor-community/facebook-login/pull/32