Saturday, August 20, 2011

Subscribing to a twitter feed in Google reader

Google reader is a bit picky about the types of feed URLs you can paste into it to subscribe to feeds. I found that the following works:

http://api.twitter.com/1/statuses/user_timeline/[username].atom

where you substitute [username] for the actual usename. For example, to subscribe in google reader to Facebook's twitter feed (http://twitter.com/#!/facebook) you click on 'Add a subscription' in reader.google.com and paste in:

http://api.twitter.com/1/statuses/user_timeline/facebook.atom

There is more documentation on this API at https://dev.twitter.com/docs/api/1/get/statuses/user_timeline. It's listed at the bottom in the 'Extended description' section with the words 'not recommended' :). The 'recommended' API, using URL parameters, doesn't work in google reader. Further note: I initially tried getting RSS feed format to work and didn't have any luck.

2 comments:

  1. thanks for the post! I read facebook and twitter via rss too, so I had to do similar research earlier this year when they both deprecated their rss feeds. :/ more:

    http://snarfed.org/2009-03-05_facebook_friend_lists#comment-44501

    http://snarfed.org/feeds

    ReplyDelete