Topic-icon Total and individual counters for Facebook, Twitter, Google

Active Subscriptions:

None
8 years 11 months ago - 8 years 11 months ago #53151 by Sunnyside
Is there a feature whereby i can show individual counts as well as total counts for Facebook, Twitter & Google.

Recently i came across an excellent module by Joomla Buzz called jbsocialshare demo
Can we replicate this kind of display with JFBC?

Secondly is there anyway we can ignore some words from OG Description, in some of my pages i'm using sourcerer to load some dynamic content, this is done between {source}{/source} tags, but the issue now is that facebook picks up {source}{/source} in description.

regards
Last edit: 8 years 11 months ago by Sunnyside.
The topic has been locked.
Support Specialist

Recently i came across an excellent module by Joomla Buzz called jbsocialshare demo
Can we replicate this kind of display with JFBC?

It's not possible in JFBConnect, and I'm not sure if we'd ever add such a function. While we can query each social network for the total amount of times a URL has been shared, the way that module is doing it is on *every* page load. That means that every time a page is loaded, the server has to send 4-8 queries (one to each social network) to check the share count. That would cause a large performance hit on many different sites for various reasons (slow server, high load, etc).

The other option is to cache the total count and only update it periodically (15 minutes, 1 hour, etc). Even then, the user that hits at that interval will see the delay and all other users may see a count that doesn't increase when they share the page.

So, in general, we lean toward the standard sharing features from each social network as they are always up to date, standard (which helps people trust them) and easy to use.

Secondly is there anyway we can ignore some words from OG Description, in some of my pages i'm using sourcerer to load some dynamic content, this is done between {source}{/source} tags, but the issue now is that facebook picks up {source}{/source} in description.

There isn't. My best recommendations would be to:
* Make sure the Sourcerer plugin is ordered before any JFBC plugins so that it does the replacements before JFBConnect tries to scan the page
* Use the {SCOpenGraph description=My new description} tag on any pages that use sourcerer so that you can set whatever tag you want to display for that page

I hope that helps explain, but if you have any questions, just let me know!

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

None
8 years 11 months ago - 8 years 11 months ago #53163 by Sunnyside
Hi Alex,

Noted your comment on the increase in queries, i'll stay away from that module as well. Thank you for opening my eyes.

Regarding the second point, i'll test and come back to you. One question on {SCOpenGraph description=My new description}, is there a possibility of php echo some dynamic text inside the SCopengraph easy tag?

regards
Last edit: 8 years 11 months ago by Sunnyside.
The topic has been locked.
Support Specialist

Noted your comment on the increase in queries, i'll stay away from that module as well. Thank you for opening my eyes.

I wasn't really trying to knock their module. It looks nice and well laid out. It's just one of those things that we've investigated before, but are always aware of how critical performance is for each site. Implementing the counter as shown in that module would be a no-go for that reason alone, but there may be something we can do to get around it to implement something similar in the future.

Regarding the second point, i'll test and come back to you. One question on {SCOpenGraph description=My new description}, is there a possibility of php echo some dynamic text inside the SCopengraph easy tag?

Absolutely! The easy tag is just HTML within a PHP file. You can do whatever you want in the tag, like:
{SCOpenGraph description=Learn more about <?php echo $breed_of_cat;?> cats}
I hope that helps,
Alex
The topic has been locked.