BlogEngine to Twitter

Published by on
Tags:

This post has been updated: BlogEngine To Twitter - Part 2

I wanted a simple way to send my new blog post straight to Twitter to inform my followers of new posts and updates. To achieve this I created a BlogEngine extension and used the work completed by the guys at Vertigo to send messages to twitter.

Download the source code (Twitter.cs (2.78 kb)) and place it in the /App_Code/Extensions directory of your site, ensure that you get the Vertigo source code a place the compiled version into your sites bin directory. There is some setup work required to get the Vertigo component to work, read the blog for details of how to do this.

You will also need to add the following resources to the labels.resx file or localize the settings for your region:

NameValue
twitterUser Twitter username
twitterPassword Twitter password
twitterUpdateText Updated blog post text
twitterNewText New blog post text
twitterHelp Use this page to set user access information and the text that will be sent to twitter. Twitter updates can only be 140 characters long. The update and new text can contain the following place holders: <ul><li>{0} - Post title</li><li>{1} - Absolute URL to post</li></ul>

Once you have setup the class in your site you will need to visit the Extensions page and configure the Twitter extension from the extensions page: 



You should see the following configuration section:

 



Fill in the details and you should be good to go. If you have any problems add a comment to the end of this blog and I will try to help.


Add comment

 

Projects

Have you read?

Visual Studio Hangs - Auto-Recover problem



Blogs by date