Yoctol / react-messenger-customer-chat

React component for messenger customer chat plugin
MIT License
272 stars 69 forks source link

The button isn't coming up in Firefox or any other platforms #42

Closed bho01 closed 3 years ago

bho01 commented 4 years ago

I followed the instructions and I am using localhost so there isn't anyway for me to whitelist. However, the button does not render.

paramshah10 commented 4 years ago

Did you find a workaround?

bho01 commented 4 years ago

Did you find a workaround?

not yet

chentsulin commented 4 years ago

Hi @bho01 @paramshah10 You can't use localhost to access the plugin. You must correctly list the whitelisted domains, so that facebook can know this fan page allows users to send messages on the certain webpages. Or, this would be a security issue.

See https://github.com/Yoctol/react-messenger-customer-chat/issues/41#issuecomment-650793224

chentsulin commented 3 years ago

For security reasons, the plugin will only render when loaded on a domain that you have whitelisted.

For more information, please checkout https://developers.facebook.com/docs/messenger-platform/discovery/facebook-chat-plugin?locale=en_US