Topic-icon Compatibility problem with Geek FB Chatbot

Active Subscriptions:

None
5 years 7 months ago #64523 by davren
I use Geek FB Chatbot and JFBConnect on the same website. I did not get FB Chatbot to work and contacted the Developer. The developer indicated that the chatbot is not working because the Sourcecoast plugin is loading an older SDK. Can you update this, or tell me how I can update or adjust it manually?

Thanh Nguyen wrote: #3. The Customer Chat plugin does not work on your site, because there is another plugin also load Facebook SDK on your site.
But it loads old version 2.6 of FB SDK that does not support Customer Chat plugin.

window.fbAsyncInit = function() {
FB.init({version: 'v2.6',appId: '865026447016804', status: false, cookie: true, xfbml: false});
FB.Event.subscribe('comment.create', jfbc.social.facebook.comment.create);
FB.Event.subscribe('comment.remove', jfbc.social.facebook.comment.remove);
};

So, if you want to use Customer Chat plugin, you need to edit above code of that plugin to edit v2.6 to v2.11 or newer.
I don’t know where that code placed, you can contact to that app developer to how to edit that code.

The topic has been locked.
Support Specialist
5 years 7 months ago #64526 by alzander
It's not a problem to update our version code. To do so, edit the /components/com_jfbconnect/libraries/provider/facebook.php file. At line 383, you'll see:
$version = "version: 'v2.6',";
Edit that to:
$version = "version: 'v2.11',";

We intentionally use a much older version number of the Javascript as that allows some extra features that have been discontinued in newer releases. We're fully compatible with the latest releases as well though.

I hope that helps,
Alex
The topic has been locked.