A couple of weeks ago we had a "Join Twitter" storm at Xebia. After the Linked-in, Plaxo, Hyves, Facebook and probably a dozen of other social network storms I initially decided to pass on Twitter. But then by colleague JCP Colleague & Friend Andreas posted an entry about twitter and that convinced me to join. Why? This sentence basically did it: "Twitter can promote your blog by sending out new blog posts." This could help to draw some extra traffic to the blog...
I immediately checked if there already was a plug-in for Pebble (the webapp that hosts this blog) that would allow me link my blog to Twitter. SinceI could not find something quickly and the functionality would be really simple I decided to create the plug-in for Pebble myself. So If all goes well each blog entry that I'll post or update to my blog will result in a Twitter update. And this blog entry should be the first proof of that ;-)
In case you're interested in including this in your own Pebble blog:
- Download the TwitterTweeter.java source and compile it against your Pebble code
- Add the resulting class (jar) to the classpath of your servlet container
- Restart the servlet container.
- Add net.vermaas.TwitterTweeter in the Blog Plug-in configuration as Blog Entry Listener and Comment Listener.
- Add the following three properties in the Blog Plug-in configuration as Properties
TwitterTweeter.password=[your Twitter password]
TwitterTweeter.userName=[your twitter user name]
** UPDATE **:
Sending out tweets on each publish, update, delete and each and every comment being posted proved to be a bit of an overkill. Therefore 2 additional properties are added:
TwitterTweeter.blog.entry.tweets=[Determines on what blog entry actions to sent a tweet]
TwitterTweeter.comment.tweets=[Determines on what comment actions to sent a tweet]
(See comments in source for valid values for these last two settings)
** EO UPDATE **
- Restart your servlet container