Topic-icon Problems with Facebook comment plugin HWDMediashare

Active Subscriptions:

None
Hello,

Currently I am working on a website called www.west-point.nl. It's online on this url but you can only login with an account at the moment. I am in the stage of finishing the site and I decided to install JFBConnect just a few minutes ago. I had a license before (but I can't find the account and it must be years ago so I bought a new one), but the component just migrated properly and even my old settings which where moved with the Joomla migration just got upgraded with the autotuner without a problem.

Unfortunately I now have issues. As soon as I enable the system plugin the Facebook Comments are gone within HWDMediashare. There is even a topic about this. Can you please check what's causing the problem. This is the topic about it:

hwdmediashare.co.uk/forum/bug-reports/73...oesn-t-display#80537

Thanks in advance!
The topic has been locked.
Support Specialist
8 years 9 months ago #54387 by mel
If I attempt to go to your page, I am given a login screen before I can proceed to your website. Could you give us credentials so that we'll be able to see the source and use developer tools to inspect the site? You can use the little envelope icon under my avatar to send a private message with the info.

A lot of times when there are other extensions with Facebook on the site in addition to JFBConnect, there can be conflicts if those extensions are including older or duplicate Facebook javascript libraries on the page. You can check out our Common Support Questions for the "What do these Autotune Error Check errors mean?" topic. The first bullet item could possibly apply in this situation. Unfortunately, I am getting a 503 error when attempting to use Autotune on your site right now (probably due to the required login). Without making the site public or allowing us more access to your site, I would only be guessing at what's wrong with the configuration.

-Melissa
The topic has been locked.
Active Subscriptions:

None
Details sent, thx in advance!
The topic has been locked.
Support Specialist
8 years 9 months ago #54400 by mel
Thanks for the credentials. As expected and explained in my earlier post, the deprecated Facebook javascript library is being included by the other extension. I searched through your source and found it included all.js). When the older library and the newer and recommended library are both included on the page, there will be issues with Facebook functionality, especially social plugins and login capabilities. Please follow the steps in the common support questions link above to remove the all.js library inclusion and let us know if you continue to have the problem after this.

-Melissa
The topic has been locked.
Active Subscriptions:

None
It would be handy if I know exactly where to find this manual. Tried the documents but this doesn't really provide a clue.
The topic has been locked.
Support Specialist
8 years 9 months ago #54426 by alzander
The specific Common Support Question that Melissa was referring to was "I ran the Autotune Error Check and am getting the following error". The answer there is:

Test: Facebook Javascript library inclusion Fail: Another Facebook extension is installed, including the Facebook Javascript library, and may conflict. - This error means that another extension, plugin or template on your site is including Facebook's deprecated all.js Javascript library. That is the 'old' version of the Facebook Javascript API which was discontinued. It's no longer meant to be used and can cause conflicts with some JFBConnect features, as JFBConnect uses the recommended sdk.js library. Some common extensions that included Facebook features are JomSocial, EasySocial, K2. You will need to check your plugins, components and/or template for any Facebook features and try to disable them.

Unfortunately, there's no way for us to determine what extension on your site is including the very old Facebook library. Hopefully the above helps you investigate further though.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
I checked and worked on this, but the only extension which seamed to load the file was RseventsPro. Their help desk indicaties it's loaded directly from Facebook. I am clueless....
The topic has been locked.
Support Specialist
8 years 8 months ago #54641 by alzander
The section of code that is including the all.js file is:
<div class="box "><div class="content"><script type="text/javascript">window.addEvent('load', function() { if(document.id('fb-root') == null){
			console.log("not found"); 
		var fbroot = new Element('div#fb-root');
		$$('body').grab(fbroot);
		(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/nl_NL/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));}});</script><div class="fb-like-box" 
	data-href="https://www.facebook.com/popplatform.westpoint" 
	data-width="300px" 
	data-height="600px" 
	data-colorscheme="light" 
	data-show-faces="false" 
	data-stream="false" 
	data-header="true" 
	data-show-border="false">
</div></div></div>
That code is trying to display the older Facebook Like-Box widget, which was deprecated by Facebook a few months ago. It's also including the very, very old Facebook Javascript library which was deprecated by Facebook over 2 years ago.

Whatever is including the Like Box widget on your page is the culprit. The Like-Box is meant to show the feed from your Facebook Page. The newer widget from Facebook is called the Page Plugin, which our SCSocialWidget module supports, or you could use the following tag as a replacement:
{JFBCFacebookPagePlugin href=https://www.facebook.com/popplatform.westpoint}
I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
Disabled this, but have to test it in depth, glad I got some help cause everybody is pointing at eachother and I had no clue where to look. Odd I couldn't find the all.js here, but the module is replaced and I will check later.
The topic has been locked.
Support Specialist
8 years 8 months ago #54681 by alzander
Awesome! I'm glad to hear we could help you find the issue. If you run into anything else or have any other suggestions, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/extensi...l-display/jfbconnect

Thanks,
Alex
The topic has been locked.