---
title: "Fresh tweets on the blog"
author: "Stan Voo"
url: https://www.99rabbits.com/blog/fresh-tweets-on-the-blog
published: 2009-10-11
summary: "I wanted my latest tweet in the sidebar as a kind of status line. Two ways that didn't quite work, and a Yahoo Pipe that did."
---

# Fresh tweets on the blog

I've long wanted to show my latest tweet in the blog's sidebar, as a sort of status message. I've just made a version that suits me 100%: a single latest tweet is shown, as a link to my whole profile on [Twitter](http://twitter.com/stasparshin "My Twitter profile").

How you can do it:

**Option 1.** For [Drupal](http://ru.wikipedia.org/wiki/%D0%94%D1%80%D1%83%D0%BF%D0%B0%D0%BB) there's the [Twitter](http://drupal.org/project/twitter) module. I expected it to create a block for showing the latest tweets on the site's pages, but for some reason that didn't happen. Apparently you can use [Views](http://drupal.org/project/views "A module for presenting information"), but I couldn't be bothered to dig into it any further. Other CMSs surely have similar modules and various ways of showing your latest tweets.

**Option 2.** Every Twitter user's profile has a nice little thing, the "RSS feed of user's tweets". You can take that RSS feed and try various ways (like [this one](http://www.codeisart.ru/php-extracting-the-last-twitter-record/ "PHP: Getting the latest message from a Twitter blog")) of putting its contents on your blog. But: the messages in that feed come in a not very suitable form, "Username: tweet text", and if you're going to show several tweets in the sidebar, it will look ugly.

So, solution number 3: take the RSS feed of your tweets, drop it into [the pipe I've prepared in advance](http://pipes.yahoo.com/pipes/pipe.info?_id=a9701add2d3f5120a6ef62aa3c11285a "yahoo pipe"), set how many tweets you want to show, make the pipe do its run (the 'Run pipe' button) and take the RSS it produces. You get the number of fresh tweets you asked for, with the silly prefix cut off, linking to your Twitter profile.

Works for now :)
