Howto: Post your WordPress blog comment actions on Twitter automatically

This tutorial shows you how to use Yahoo! Pipes and twitterfeed to automatically log your WordPress comments on Twitter.

Why it is useful to automate tweets

The great thing about Twitter is that it asks you, “What are you doing?”, and no update status is too trivial. If you are like me, you use Web 2.0 services outside of Twitter. If you are like me, you feed the RSS feeds of your blog posts, Wikipedia edits, and Delicious saves into Twitter via twitterfeed, so that whenever you blog, edit Wikipedia, or save a link to Delicious, your actions are logged on Twitter.

I also comment on other people’s blogs, and I thought it would be a great idea to keep track of my comments on Twitter. Some comment systems provide a RSS feed of your own comments, but most WordPress blogs provide only the RSS feed of all comments. I decided to use Yahoo! Pipes to filter the comment feed of my blog and output a new RSS feed containing only my comments.

What you will need

  • the WordPress comment feed of a WordPress blog on which you frequently comment. (The URL of a WordPress comment feed looks something like All blogs have a comment feed URL in this format.)
  • a Yahoo! account (free)
  • a twitterfeed account (free)
  • a Twitter account (free)


First create a customized comment feed with Yahoo! Pipes, then add the processed RSS feed to your twitterfeed account.

How to create your customized comment feed with Yahoo! Pipes

  1. Log into Yahoo! Pipes.
  2. Click on “Create a Pipe”.
  3. On the left side menu, open up the “Sources” submenu and drag “Fetch Feed” into your work area.
  4. In your “Fetch Feed” module, paste the URL of the WordPress comment feed into the text field.
  5. On the left side menu, open up the “Operators” submenu and drag “Filter” into your work area.
  6. Pipe the “Fetch Feed” module into the “Filter” module.
  7. On the first row of the “Filter” module, choose “Permit” and “all”.
  8. In the “Filter” module, under “Rules”, choose “item.dc:creator”, “Matches regex”, and “^your handle” (e.g., for me, it is “^Restructure”).
  9. From the left side menu, the “Operators” submenu should be open. Drag the “Regex” module into your work area.
  10. Pipe the “Filter” module into the “Regex” module.
  11. Within the “Regex” module, in “item.title” replace “Comment” with “commented”.
  12. Within the “Regex” module, click on the plus sign to add a new regex field. In “item.title” replace “by your handle” (e.g., “by Restructure!”) with a blank or “« name of blog“.
  13. Pipe the “Regex” module into the “Pipe output” module.
  14. Click on the “Pipe output” module and check the output in the Debugger at the bottom of the screen to make sure the final output looks correct.
  15. Save.
  16. Click on “Run Pipe…”.
  17. Get as RSS.

Screenshot of Pipes source. Screenshot of Pipes output.

How to add an RSS feed to twitterfeed

  1. Log in to twitterfeed.
  2. Click on “Create new feed’.
  3. Enter your Twitter username, password, and the URL of the RSS feed you created.
  4. Choose your update frequency as “Every 30 mins” and post up to 5 new updates each time.
  5. Include “title only”.
  6. Include item link and shorten link through TinyURL.
  7. Post new items based on “GUID” and make sure to select “Feed is sorted”.
  8. The rest of the options should be set correctly by default.
  9. Click “Create”.
  10. Wait up to 30 minutes until your first auto-tweet appears on Twitter.

Advanced: How to pipe your comments from multiple blogs into your Yahoo! Pipe

If you successfully created your customized comment feed in Pipes, you may want to track your comments on multiple blogs. You can modify your Pipe by adding more “Fetch Feed” modules, adding the “Union” module (under “Operators”), and adding the “Sort” module (under “Operators”).

Below is a screenshot of my modified Pipe source which combines my comments from multiple WordPress blogs.

Diagram of Pipes source fetching multiple comment feeds. (In the 'Sort' module, sort by 'item.pubDate' in 'descending' order.)

Note that for the “Regex” module, I did not input the blog name; I left it blank instead, because not all the posts I commented on are from the same blog. If you really want to combine multiple comment feeds and also insert the blog name, you would have to do it for each blog by adding a “Regex” module after each blog’s “Fetch Feed” module. However, I don’t think tweeting the blog name is that important, so I didn’t bother.

Happy auto-tweeting!

Update 2009/07/10:

The actual Pipe that I use to track my WordPress comments is published here. You need to have a Pipes account to see the source. You can also follow me on Twitter.

3 Responses to “Howto: Post your WordPress blog comment actions on Twitter automatically”

  1. Jack smith Says:

    Thank you for good Article

  2. Howto: Post your Blogger comment actions on Twitter automatically « Restructure! Says:

    […] Howto: Post your blog comment actions on Twitter automatically […]

  3. goyal Says:

    ur article is a bit technical. but i will try to implement it.

Comments are closed.

%d bloggers like this: