Topic-icon facebook comments issue

Active Subscriptions:

None
7 years 7 months ago - 7 years 7 months ago #59531 by rapsearch
Hi,

I've bene trying to install a plugin that creates facebook comments on my site but the content it now showing. After searching why this is happening i was pointed to this:

==========
yes it looks like it's conflicting somehow.
you see, the Db plugin needs a DIV with id="fb-root", which the plugin itself contains.
however, if you look at the source code of your site, there's the same DIV right at the beginning of the BODY of the page.
so, there are two of them. that's what causing the conflict.
=========

My question... is this first div id related to the jfbconnect component i use on the site? Do you have any idea?

sample url: www.rapsearch.com/mixtapes/D/1949-dee-ro...e-roze-pay-4-it.html
comments should show right below the audio in the middle column
Last edit: 7 years 7 months ago by rapsearch.
The topic has been locked.
Support Specialist
7 years 7 months ago #59532 by mel
Replied by mel on topic facebook comments issue
Looking at the source on the page, there is a conflict. Another extension (the plugin you're using for adding comments that's not JFBConnect) is inserting the all.js Facebook javascript library onto the page. If you inspect where the comment box should be in the middle column you will see this. This all.js library is deprecated and no longer recommended by Facebook. JFBConnect uses the newer sdk.js Facebook javascript library onto the page.

The problem with both being on the page is that functionality such as social widgets and social authentication will not work properly as these two libraries do not work together. I would suggest you either 1) remove the plugin that you're using to add the comments and instead insert our JFBCComments easy-tag into your content or use our SCSocialWidget module or 2) remove the code in the other extension that inserts all.js library.

If you want to use the easy-tag, it could be as simple as just inserting the following into your articles/etc.
{JFBCComments}

There are also other options to customize the comment box - you can see these options in JFBConnect backend > Social > Examples area.

-Melissa
The topic has been locked.
Active Subscriptions:

None
7 years 7 months ago - 7 years 7 months ago #59557 by rapsearch
Replied by rapsearch on topic facebook comments issue
Hi Melissa,

Thanks for clearing this up. I'm puzzled now where to look, to find what mod/plugin is adding these old scripts and code. Do you have experience how to do this? I talked to my host and its not my template so i'm not sure where to find this :(


Second, I do see <div id="jfbcLoginModal" class="sourcecoast modal"...> at the bottom of my site source. How can i disable that? I somehow activated the social connect option from your jfbconnect but i dont want it to auto connect when im logged in to facebook for example

note: i did try {JFBCComments} and that works fine :)... but i do like to keep my code clean so i really want to get that trash gone...
Last edit: 7 years 7 months ago by rapsearch.
The topic has been locked.
Support Specialist
7 years 7 months ago #59560 by mel
Replied by mel on topic facebook comments issue

Thanks for clearing this up. I'm puzzled now where to look, to find what mod/plugin is adding these old scripts and code. Do you have experience how to do this? I talked to my host and its not my template so i'm not sure where to find this

Honestly, there are so many extensions/plugins/templates out there that could be causing this. Without knowing what you have installed, it's hard to tell you where to start, except to systematically go through each plugin on your site. However, looking at that link in your first post, I no longer see the all.js inclusion. Did you manage to disable this?

Second, I do see <div id="jfbcLoginModal" class="sourcecoast modal"...> at the bottom of my site source. How can i disable that?

This is from our SCLogin module. You've set it up to do a modal on the "Log In" button click, so unless you change back from modal to a normal login form, it's not possible to remove this.

I somehow activated the social connect option from your jfbconnect but i dont want it to auto connect when im logged in to facebook for example

If you don't want social login at all, you can turn the login buttons from the SCLogin module parameters. However, if you just want auto-connect turned off, I'd suggest you'd look at the options in the JFBConnect backend > Configuration > Facebook > 'Auto Login Facebook Users' and JFBConnect backend > Configuration > General > 'Automatically Link Users by Email'. If this doesn't point you in the right direction, we'll need more details on desired versus actual behavior on your site.

note: i did try {JFBCComments} and that works fine current/smile... but i do like to keep my code clean so i really want to get that trash gone...

As I said it looks like the all.js is missing, so if you're not using the standard Joomla content component or K2 component, then we'd recommend the easy-tags or using our SCSocialWidget.
The topic has been locked.