This post of mine is coming after a long time, I know. The reason for this has been lack of time, being very busy with other things etc. I will try to be more frequent here hereafer.
Anyways, in a recent project, I had the requirement to show Twitter statuses on the homepage of the website I was working on. The first thing I did was, went straight to RiaForge and searched for any Twitter related CFC’s. I did find a couple of them and they all looked pretty good. However, since I only wanted to get the stautses and not the other fancy stuff like direct messages etc, I thought there must be an easier way of doing it.
That’s when I thought if the statuses are available as RSS feeds, I am done. CFFEED can do everything for me.
<cfset feedurl = "http://twitter.com/statuses/user_timeline/15172848.rss" /> <cffeed source="#feedurl#" properties="statusmeta" query="statuses" />
Thats it. The code above gives me a feed of my status updates in a ColdFusion query, which I can now use to display as I want. There are too many columns in the query with lots of useful information. I ended up using just the “rsslink” and “title” columns as those were the only 2 I wanted for my requirement.
Its nice to know that Twitter publishes these rss feeds and even nicer that I can use this in one line of code.
Pingback: AJF7688 Blog - Easiest way to get Twitter Statuses with ColdFusion | Anuj …
#1 by Steve Withington on August 25, 2009 - 7:19 pm
Quote
i posted something similar back in March: http://www.stephenwithington.com/blog/index.cfm/2009/3/4/Use-ColdFusions-CFFeed-to-Display-Your-Twitter-Tweets-and-more-on-Your-Blog-in-30-Seconds
#2 by Anuj Gakhar on August 25, 2009 - 9:53 pm
Quote
@Steve, thanks for the link. Good information.