Topic-icon Facebook Comments and K2 Categories

Active Subscriptions:

None
9 years 11 months ago #44337 by bryanwnc
Hello,

I was trying to configure the Facebook Commenting but I only see the ability to choose Joomla categories to include and do not see a way to choose K2 categories in the Facebook commenting section.

Is this possible?

Thanks.
The topic has been locked.
Support Specialist
9 years 11 months ago #44340 by alzander
Yes, you should be able to. If you have K2 enabled, there should be an additional section in the Social configuration area of JFBConnect for K2 - Comments and K2 - Likes. In there, you can configure how the commenting works within categories of K2.

I hope that helps get you going, but if you don't see those tabs, please let me know and we'll help investigate further.

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

None
9 years 11 months ago #44350 by bryanwnc
I found it. Thank you....

One more question.

I want there to only be commenting using Facebook. I have noticed when a new article is posted and the comment box comes up, when I am not logged into Facebook there is a pulldown "Comment using". I do not want that there. The only workaround I have found is for me to log into FB, then it defaults to FB posting, make a comment, click on the settings and check "Allow users to post using other login providers" (it is unchecked by default), click save, then uncheck the "Allow users to post using other login providers" and save again. THEN if I launch a browser that is not logged into FB and go to the page, the pulldown is gone and it forces FB posting.

Since my default is not to allow it, why does it allow it? I have to enable it, save and then disable it and save to get it to work like I want it to.


Thanks.
The topic has been locked.
Support Specialist
9 years 11 months ago #44356 by alzander
That setting for "Allow users to post using other login providers" is definitely the setting you should be using. I'm not sure why the default isn't working right away. However, that setting is a site-wide setting. It should only need to be set on one page and JFBConnect will notify Facebook that it should be used on all pages of your site with a comment box.

If you're not seeing that behavior, I'd recommend trying to go to their Facebook Comment Moderation tool . From there, you can click the "Settings" button again for your application and ensure the box is unchecked. That, again, should be a site-wide setting for your Facebook Application and will hopefully take care of things.

If that doesn't help, let me know a URL that is still showing the drop down and one that you 'fixed' and we'll try to investigate however we can.

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

None
9 years 11 months ago #44362 by bryanwnc
I have tried both the inline Settings as well as the FB comment moderation tool you mention with the same results.

Here is a page with the unexpected behavior:
www.herald-citizen.com/newsx/item/806-go...eaders-at-boys-state

And here is one that I toggled to get it right.
www.herald-citizen.com/newsx/item/799-su...t-goes-to-boys-state

Here is a SS of my settings in the Moderation tool.


Thanks for your help.
The topic has been locked.
Support Specialist
9 years 11 months ago #44385 by alzander
The issue is the following code inserted on your page to create the Like button at the bottom:
<div id="fb-root"></div>
										<script type="text/javascript">
		                            (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/en_US/all.js#appId=177111755694317&xfbml=1";
		                              fjs.parentNode.insertBefore(js, fjs);
		                            }(document, 'script', 'facebook-jssdk'));
		                    </script>
										<div class="fb-like" data-send="false" data-width="260" data-show-faces="true"></div>
That code is re-including the Facebook Javascript library and will cause you multiple issues with JFBConnect. The double inclusion should also have been called out when running our Autotune -> Error Check tool. Please remove that inclusion of the Like button and re-run the Error Check tool to make sure everything passes. After that, it may take a few days for things to work properly as Facebook will have to re-detect the proper settings for your site.

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

None
9 years 11 months ago #44453 by bryanwnc
Thank you...

I found where I can disable FB "Social Sharing" in K2. But when I disable the FB button in the K2 settings, it disables ALL FB things on the page (including JFBConnect). Below is a link to a page where I have JFBConnect Comments and Like turned on in JFBConnect but disabled in the K2 settings.

www.herald-citizen.com/index.php?option=...m&layout=item&id=696
The topic has been locked.
Support Specialist
9 years 11 months ago #44466 by alzander
The problem is because of the block of code below. That code is re-including an older version of the Facebook Javascript library, and doing so in a way that's incompatible with the newer method that JFBConnect (properly) uses:
};
            (function(d){
                var js, id = 'facebook-jssdk';
                if (d.getElementById(id)) {return;}
                js = d.createElement('script');
                js.id = id;
                js.async = true;
                js.src = "//connect.facebook.net/en_GB/all.js";
                d.getElementsByTagName('head')[0].appendChild(js);
            }(document));</script>
        <!-- KAJSSDK by www.Khawaib.co.uk End -->
You'll need to disable whatever extension is including that code and you should be good to go.

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

None
9 years 11 months ago #44490 by bryanwnc
I found the offending plugin... It was a remnant of trying other FB plugins until I finally found JFBConnect. I disabled it and everything is working as it should.

Thank you!!
The topic has been locked.
Support Specialist
9 years 11 months ago #44498 by alzander
I love it when a plan comes together :) Glad to hear things are going for you. Of course, if you run into anything else, just let me 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 certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.