This is the simple plugin can be used to get the number of social shares. With this plugin, following can tracked:
- Tweets
- Facebook Shares
- Facebook Likes
- Google +1’s
- LinkedIn Shares
- Pinterest Pinned
- Delicious Posts
- Stumble Upon Views
Documentation
Requirements:
- ExpressionEngine 2.6+
- PHP 5.2+
Installation guide:
Unzip and upload “social_share_count” into “system/expressionengine/third_party/”
Parameters:
url: [Default: Current page URL] URL of which social counts will be fetched. If this parameter isn’t given, current page URL will be taken.
Below are the tags for getting social counts:
Tweets:
{exp:social_share_count:tweets url="http://www.yoursite.com"}
### To get tweets of current page ###
{exp:social_share_count:tweets}
Facebook Likes:
{exp:social_share_count:fb_likes url="http://www.yoursite.com"}
### To get Facebook likes of current page ###
{exp:social_share_count:fb_likes}
Facebook Shares:
{exp:social_share_count:fb_shares url="http://www.yoursite.com"}
### To get Facebook shares of current page ###
{exp:social_share_count:fb_shares}
Google +1’s:
{exp:social_share_count:plusone url="http://www.yoursite.com"}
### To get Google +1’s of current page ###
{exp:social_share_count:plusone}
Linkedin Shares:
{exp:social_share_count:linkedin url="http://www.yoursite.com"}
### To get Linkedin shares of current page ###
{exp:social_share_count:linkedin}
Pinterest Pinned:
{exp:social_share_count:pinterest url="http://www.yoursite.com"}
### To get Pinterest pinned of current page ###
{exp:social_share_count:pinterest}
Delicious Posts:
{exp:social_share_count:delicious_posts url="http://www.yoursite.com"}
### To get Delicious Posts of current page ###
{exp:social_share_count:delicious_posts}
Stumble Upon Views:
{exp:social_share_count:stumbleupon_views url="http://www.yoursite.com"}
### To get Stumble Upon Views of current page ###
{exp:social_share_count:stumbleupon_views}
Please Note: In future, APIs for getting counts can be updated. In that case, plugin may not work and need to be updated according to APIs.