Twitter API v1.1 RSS feeds

Standard

Twitter have killed of RSS feeds completely in API v1.1. I used to use this nice little website (http://roomj.com/twitter/connect.php) to pull out RSS from Twitter, but that alas is broken.

Edit: @tylercal has now updated http://roomj.com/twitter to handle the new v1.1 API – so if you want to avoid the hassle of installing your own just use his. It produces a nicer feed too with images from tweets displayed ‘n’ all.

Here are the steps I followed to get RSS coming out again at my own site http://www.ianchanning.com/twitter-rss-parser/?home

Google search for ‘twitter to rss’ lead me to the tiny tiny RSS forum (http://tt-rss.org/forum/viewtopic.php?f=16&t=2229). The awesome user jdelamater99 there has created a PHP application on Github that you can install on your site to convert the twitter output into RSS.

  1. Create a twitter app (https://dev.twitter.com/apps/new)
  2. Once created, click on ‘Create my access token’ at the bottom of the ‘Details’ tab
  3. Look in the OAuth tab
  1. Download the Twitter-RSS-Parser from github (https://github.com/jdelamater99/Twitter-RSS-Parser/archive/master.zip)

  2. Unzip it and FTP it to your site, note that I renamed the directory to be twitter-rss-parser all lower case. I think github also stick a ‘-master’ on the end of the directory that you don’t want. Obviously you can change this as you like

  3. Copy the config.php-dist file to config.php

  4. Edit the config.php file and modify the following lines to match the OAuth Settings above

$consumer_key = 'xxxxxxxxxxxxxxxxxxxx';
$consumer_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$token_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
  1. Goto the URL you uploaded e.g. http://ianchanning.com/twitter-rss-parser/?home to check that it works

About these ads

2 responses »

  1. I did all the steps. My application is working when I enter a valid user name in $twit_name in config.php. But I want to use this application for following multiple users (e.g.; by passing the user name by a query string). Is that possible?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s