Make your website more social with helpers

The NuGet gallery in WebMatrix 2 Beta, which you can DOWNLOAD HERE, makes it easy to add helpers to your website.  You can make your website more social by adding commonly used functions from Facebook, Twitter, Paypal, etc.  Let’s see how we can enhance the photo gallery site created in my previous post by leveraging a Twitter helper to get me more followers @alicerp.

Click on the dropdown menu of the NuGet gallery at the top right and select Twitter.Helper.

16

Install the NuGet package and Accept the end-user license agreement.

17

18

As you can see, the Twitter.Helper package has been added to your packages under App_Data->packages.

19

Let’s get people to follow me on my page footer.  Open your PageFooter.cshtml file.  Notice when you start typing @Twitter. code completion (aka IntelliSense) kicks in with some options.

20

Add FollowButton and a string for my Twitter handle.

21

22

Click Run and check out the new page footer!

23

twitter