SocialCounter.NET

A handy .NET library to get the counts of your social stats. SocialCounter.NET provides you a flexibility to get your Facebook page fans, RSS feed readers, Twitter followers count with ease and more to come in near future.

What is SocialCounter.NET?

SocialCounter.NET is a handy .NET library consist of bunch of functions which will let you get the social stats of most of the frequently used social sites. For example, if you want to show Twitter followers, facebook fans count of your page or feed readers count. SocialCounter.NET makes use of the freely available APIs by various social networking sites. SocialCounter.NET will makes it easy for you to get your stats with one single line of code.

Example

If you want to show off your Twitter followers, Facebook page likes and blog Feed Readers count on your blog/website, then here is the simplest way of doing it.

TwitFollowers.InnerHtml = "<strong>" + Counter.GetTwitterFollowersCount("prashantmx") + "</strong><br/>";
FBFans.InnerHtml = "<strong>" + Counter.GetFacebookLikes("http://facebook.com/audi") + "</strong><br/>";
FBFriends.InnerHtml = "<strong>" + Counter.GetFacebookFriendsCount("khandelwal.p") + "</strong><br/>";
RSSReaders.InnerHtml = "<strong>" + Counter.GetFeedReadersCount("midnightprogrammer") + "</strong><br/>";
GPlusone.InnerHtml = "<strong>" + Counter.GetPlusOnesCount("http://midnightprogrammer.net/post/Using-ReCaptcha-In-ASPNET-WebForms-And-MVC.aspx") + "</strong><br/>";
DelSaveCount.InnerHtml = "<strong>" + Counter.GetDeliciousSaveCount("http://midnightprogrammer.net/post/HTML5-File-Drag-and-Drop-Upload-With-jQuery-and-ASPNET.aspx") + "</strong><br/>";
LinkedInCount.InnerHtml = "<strong>" + Counter.LinkedInShareCount("http://www.webmonkey.com/2012/02/webkit-isnt-breaking-the-web-you-are/") + "</strong>";
            
Output:

SocialCounter.NET in action

Documentation

Functions available that you can use with the current release. The documentation will update when there will be any update in the library.

To use the below functions add reference of SocialCounter.NET in the project and then add the below namespace.

            using SocialCounter.NET;
            
Get Facebook Page Fans/Like Count:

Method Name: GetFacebookLikes(string FaceBookPageURL)
Parameters: URL of Facebook Page.
Return Type: string
Returns: Returns total like count of your Facebook page.

Example:
                Counter.GetFacebookLikes("http://facebook.com/audi");
                
Get Facebook Friends's Count:

Method Name: GetFacebookFriendsCount(string FBProfileName)
Parameters: Facebook profile name.
Return Type: string
Returns: Returns total number of Facebook friends.

Example:
                Counter.GetFacebookFriendsCount("khandelwal.p");
                
Get Twitter Followers's Count:

Method Name: GetTwitterFollowersCount(string UserName)
Parameters: Twitter profile name.
Return Type: string
Returns: Returns total number of Twitter Followers.

Example:
                Counter.GetTwitterFollowersCount("prashantmx");
                
Get Feed Readers Count:

Method Name: GetFeedReadersCount(string ProfileName)
Parameters: Feedburner profile name.
Return Type: string
Returns: Returns total Feed Readers count for the current day.

Example:
                Counter.GetFeedReadersCount("MidnightProgrammer");
                
Get Google Plusone (+1) Count:

Method Name: GetPlusOnesCount(string WebURL)
Parameters: Web page URL
Return Type: string
Returns: Returns total plusone (+1) count of the web page.

Example:
                Counter.GetPlusOnesCount("http://midnightprogrammer.net/post/Using-ReCaptcha-In-ASPNET-WebForms-And-MVC.aspx");
                
Get Delicious Save Count:

Method Name: GetDeliciousSaveCount(string WebURL)
Parameters: Web page URL
Return Type: string
Returns: Returns Delicious save count for the web page URL.

Example:
                Counter.GetDeliciousSaveCount("http://midnightprogrammer.net/post/HTML5-File-Drag-and-Drop-Upload-With-jQuery-and-ASPNET.aspx");
                
Get LinkedIn Share Count:

Method Name: GetLinkedInShareCount(string WebURL)
Parameters: Web page URL
Return Type: string
Returns: Returns LinkedIn share count for the web page URL.

Example:
                Counter.GetLinkedInShareCount("http://www.webmonkey.com/2012/02/webkit-isnt-breaking-the-web-you-are/");
                

History

Version 1.2.2 (February 20,2012)

Version 1.2 (February 19,2012)

Version 1.1 (January 2, 2012)

Version 1.0 (December 31, 2011)