Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Messenger Customer Chat Plugin not appearing when not logged in

I have integrated Facebook Customer Plugin on one of our websites. I followed the instructions in the developer documentation. It is working fine when there is an active facebook session. However, the plugin does not appear at all when there is no active fb session. I might be missing something but I have no clue on what that is.

like image 937
roundhousekick Avatar asked Jan 05 '18 12:01

roundhousekick


People also ask

How do I add Facebook customer chat to my website?

From your Facebook Page: Navigate to your Page Settings. Click Messaging. Under Add Messenger to your website, click Get Started.

How does Facebook chat plugin work?

The Chat Plugin allows you to integrate your Messenger experience directly into your website. This allows your customers to interact with your business anytime with the same personalized, rich-media experience they get in Messenger.

How do I remove Facebook chat plugins?

Reset the plugin by selecting Manage Settings > Advanced Options > Delete from the configuration page of the plugin and setting up again. Try deactivating other plugins that you think may be interfering, then reset and set up again.


1 Answers

The solution for me was adding #xfbml=1&version=v2.12&autoLogAppEvents=1 after the xfbml.customerchat.js file like :

js.src = 'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js#xfbml=1&version=v2.12&autoLogAppEvents=1';
like image 63
losted Avatar answered Sep 28 '22 03:09

losted