keppelen / react-facebook-login

A Component React for Facebook Login
1.18k stars 406 forks source link

Adding Facebook Customer Chat Plugin breaks login #331

Open akshatamohanty opened 2 years ago

akshatamohanty commented 2 years ago

I am using this package to enable Facebook login. And using GTM to load Facebook Customer Chat Plugin on my website. However, adding the plugin makes the auth fail with FB.login called before FB.init error - assuming it's because loading the SDK again is override the previous load?

What's the correct way to handle this?

Could I create a PR to modify the base url here to be configurable from the props to be the extended url sdk/xfbml.customerchat.js instead, similar to locale?

greatSumini commented 2 years ago

@akshatamohanty i have rewritten react-facebook-login to support CustomChat plugin in @greatsumini/react-facebook-login https://github.com/greatSumini/react-facebook-login