Get Social Bookmark Counts With Sociacount

sociacountSociacount is a jQuery plugin + PHP for displaying the total of your social profile subscriber or follower on popular site including Facebook, Twitter, Github, Youtube, Dribbble, Forrst and Vimeo. This script uses PHP Library to support OAuth for Twitter and jQuery Ajax for retrieving data. This is how to use this script.

1 Fill the Twitter API key

Open “sociacount.php” if you are using the Twitter followers counter and fill the your Twitter API key. If you don’t have it, your can create a Twitter API key.

$consumer_key        = 'putYourConsumerKeyHere';
$consumer_secret     = 'putYourConsumerSecretHere';
$access_token        = 'putYourAccessTokenHere';
$access_token_secret = 'putYourAccessTokenSecretHere';

We are done with the php file for Twitter API.

1 Using script in HTML template.

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="jquery.sociacount.js"></script>
<script type="text/javascript"> 
    $(document).ready(function() {
        $("#social").sociacount({
            facebook: 'forbes',
            twitter: 'forbes',
            youtube: 'forbes',
            dribbble: 'frogandcode',
            forrst: 'kyle',
            github: 'fat',
            vimeo: 'soxiam',
            ajaxurl: window.location.pathname+'sociacount.php'
        });
    });
</script>

Change the social profile to your username, let it empty if you don’t want to use several profile or delete the line. You can change the ajaxurl to the “sociacount.php” url like ‘http://www.yoursite.com/yourdir/sociacount.php’

Preview
Please note, the preview have a referral in the link to the premium marketplace.

Download
Download Sociacount From Github


Create Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>