Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Facebook Customer Chat Plugin breaks login #331

Open
akshatamohanty opened this issue Sep 13, 2021 · 1 comment
Open

Adding Facebook Customer Chat Plugin breaks login #331

akshatamohanty opened this issue Sep 13, 2021 · 1 comment

Comments

@akshatamohanty
Copy link

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?

@akshatamohanty akshatamohanty changed the title Unable to load Facebook Plugin Customer Chat correctly Adding Facebook Customer Chat Plugin breaks login Sep 13, 2021
@greatSumini
Copy link

greatSumini commented Oct 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants