Back in June of this year, Twitter discontinued their public REST API version 1.0, which made it impossible to anonymously pull twitter feeds directly into other websites. As of API version 1.1, all access to tweets must take place through authenticated applications over the OAuth protocol. This had the effect of breaking numerous sites that relied on a twitter feed for news updates and embedded contact information. Our company website was one such site affected by this change, and it rendered a popular jQuery plugin entirely useless. I still find quite a few sites around the web with embedded twitter feeds that are perpetually “loading” due to the old API closing down. The only simple solution provided by Twitter is to use their pre-styled embedded timeline widget, which is distinctively twitter branded. Fortunately, there is another way around this problem.
I wrote a simple php script for this very purpose, which you can grab over on github:
For example, the following query:
Will return this:
I’m using this code in my footer here, and we’ve got it running over at simplecampushousing.com as well. Feel free to fork the project and make any changes if you like. It’s pretty basic right now, but it works dandy.