5 07 2012
Using SocialCounter.NET with ASP.NET MVC
Start with downloading SocialCounter.NET. You can also use NuGet package manager to download SocialCounter.NET.
Using SocialCounter.NET is very easy as you can see from this example view:
ViewBag.Title = "Home Page";
Twitter followers: @Counter.GetTwitterFollowersCount("gpeipman")<br />
Facebook friends: @Counter.GetFacebookFriendsCount("gpeipman")<br />
Facebook likes: @Counter.GetFacebookLikes("http://www.eindhovenmetalmeeting.nl/")<br />
Delicious saves count: @Counter.GetDeliciousSaveCount("http://youreffectiveleadership.com/")
And the result is shown on image on right.
You can use SocialCounter.NET by example on user profile pages and on your content pages where you want to show how many people have saved current page as bookmark.
SocialCounter.NET supports also LinkedIn, RSS-feeds and Google Plus accounts. In future – I hope – they will add support for more social networks to their library.