× Joomla Facebook Connect support forum

Topic-icon What's the difference between JFBCContent and JFBCSocial?

Active Subscriptions:

None
As the subject say: What's the difference between JFBCContent and JFBCSocial?

On your about-page, you write:
# JFBCContent plugin - Integrate JFBCLike and JFBCComments functionality into your article views
# JFBCSocial plugin - Integrate JFBCLike, JFBCComments, and JFBCShare functionality into page content

What does that mean? When and how should I use which?

I don't see any change at all when activating JFBCSocial. When activating JFBCContent it shows according to my settings.

I want the like button on the top of the page, and the comment field right after the article.
But when doing this using JFBCContent at the top and JFBCComments at the bottom, the number of likes differ.
JFBCContent shows zero likes, while the JFBCContent shows the correct number of likes. Why is this?

/Bosse
The topic has been locked.
Support Specialist
The JFBCSocial plugin is what we use to look for the {} tags on the page and replace with them with the correct Facebook calls. These are the { JFBCLike}, { JFBCComments}, etc tags and can either be put manually on a page (in the template, in an article, etc), inserted by one of our modules, or inserted by the JFBContent plugin.

The JFBContent plugin is used to automatically insert the Like and Comment boxes on content pages of your site. This is done by automatically inserting the {} tags for each into the articles, which is then replaced with the JFBCSocial plugin.

So, you should always have the JFBCSocial plugin enabled. You can choose whether you want the JFBContent plugin enabled.

The reason the likes differ unfortunately, is that we send a unique identifier to Facebook within the JFBContent plugin. We create this id based off the type of page you're displaying along with the id of the content.. so the identifier would be something like 'content_12' for article 12. The reason we generate this ID, instead of letting Facebook do it automatically, is because on many Joomla sites, you can reach the same page in numerous ways. For example:
index.php?option=content&view=article&id=12 (A page only showing article 12)
index.php?Itemid=27 (which would be a menu item to show article 12)
index.php?option=content&view=blog&catid=12 (A blog layout, each article could have it's own like box).

The last case is the most important, because when using the JFBContent plugin, we'll put like buttons on each article, but each like button would be unique to that article, not to the 'blog' page itself.

Hope that explains the function of the two plugins. You can use the Content plugin to insert the Like button at the top of the article, and the comments at the bottom and they should both line up. If you use the { JFBCLike} tag or module on the page though, you'll want to make sure you use the same id that the Content plugin is specifying (you can find it in the HTML).

We're working on streamlining some of the plugins for a future release to make it less confusing. Right now, we have a ton of ways to do similar things, and each one fits certain needs.

Hope this helps, but if you have any questions, let us know.

Thanks!
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #7470 by Bosse
Oki, I will fibble a little to see if I get it...

Thanks!
The topic has been locked.
Support Specialist
No problem. Let us know if you have any other questions. If you run into issues, or have suggestions on how to improve things, we're always listening.
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #7484 by Bosse
Hi Alex,

I still don't get it how to get the script to work so the "Likes" doesn't differ. (bare with me.. I'm from the country side in the south part of Sweden. If it isn't about food, it takes time before the penny drop... :) )

So I decided to go for the { JFBCLike}. As i understand it, you have to manually add it in every article you want it to show. Correct me if I'm wrong...

I bought and installed FB Connect for a customer. They should handle articles themselves. Which means you can't trust them to remember putting this in the articles...

I did like this:
I'm using a YOOtheme. In /templates/yoo_studio/html/com_content/article/default.php I added the {JFBCLike } to the code. Now it works exactly as I want.

Maybe this wasn't the way you intended, but it works for me.

Have a good one!
/Bosse
The topic has been locked.
Support Specialist
Yup, what you did should work. Additionally, you could use the JFBCLike module and add it to the menu item that displays your articles, and set the ID in there. If you don't have a good menu item (or a few) that covers all your items, you could try using the Advanced Module Manager from NoNumber.nl which has a lot more configuration options for where a module is displayed, and you can use that to insert a module on any article page.

Of course, if you've got something working how you want, that's great. Hope it's not too confusing, and certainly, if you have some suggestions on how to improve the adding of Like buttons (or anything else), let us know!

Thanks, and good luck!
The topic has been locked.
Active Subscriptions:

None
Hi Alex,

Can you please guide me how i can change some code for JFBC content plugin so that the social plugin is displayed properly. Right now it looks very messy/overlapping.

Ideally i would want the like/share buttons to be displayed top-right of every article.

--Best
Shashank
The topic has been locked.
Active Subscriptions:

None
Like in the sample image attached.
File Attachment:
The topic has been locked.
Active Subscriptions:

None
Do you mean to say if i use {JFBC} for an article and if i as a user reach the same article from two different links....Like count/info will differ or it will still be the same.

I am assuming for now that only advantage with content plugin is that it is automatic and for {JFBC} its just that you have to manually, but the data exchange between facebook and my site remains the same or in other words if there are 5 people who have liked the article, the count will always be 5 no matter how you reach the article.

--Best
Shashank
The topic has been locked.
Support Specialist
Spandey,
The Share button shouldn't be used anymore. Please see the following article on our site, which also links to some other articles discussing the discontinued nature of the share button. It's possible this is causing some of the issues you're experiencing:
www.sourcecoast.com/extensions/jfbconnec...tions#share-conflict

As for the {JFBC} tags, it's possible that you will have different Like buttons depending on how you include the tag. Since an article can be displayed in a blog layout, on your front page, in a module, or other places, when using the JFBCContent plugin, we'll try to use the same unique ID for each instance. That way, even on separate pages, the Like button would all be for the same article. The same goes for a page that shows one article. You could have a Like button for just that article, but then a Like button for the entire site (set the xid id to 'site' or something like that).

Hope that helps makes sense. It doesn't state how you should use it though, because it depends on what you're trying to accomplish. If you have something specific you're looking to do, let us know and we can help let you know how to do it!
The topic has been locked.