Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

SharedCount for Craft3

Fred Carlsen's SharedCount plugin ported to Craft 3.


This plugin requires Craft CMS 3.0.0-RC1 or later.


  • Install with Composer via: composer require balazscsaba2006/sharedcount
  • Navigate to Settings -> Plugins and click the "Install" button


  • Navigate to Settings -> Plugins and configure settings for SharedCount

Overriding plugin settings

If you create a config file in your config/ folder called sharedcount.php, you can override the plugin’s settings in the Control Panel. Since that config file is fully multi-environment aware, this is a handy way to have different settings across multiple environments.

Here’s what that config file might look like along with a list of all of the possible values you can override.


return [
    'apiKey' => 'My40CharacterLongApiKey',

Supported services

  • Facebook
  • Twitter
  • Pinterest
  • LinkedIn
  • StumbleUpon
  • Google+


{% set stats = craft.sharedcount.likes({
    url: ''
}) %}

{% for service,count in stats %}
    {% if count is iterable %}
        <li>{{ service }}

        {% for key,value in count %}
            <li>{{ key }}: {{ value }}</li>
        {% endfor %}
    {% else %}
        <li>{{ service }}: {{ count ? count : 0 }}</li>
    {% endif %}
{% endfor %}
You can’t perform that action at this time.