I couldn’t find a WordPress plugin that replicated my old script that posted each day’s favorited tweets. It was a nice way for me to share some quick links without having to write a whole blog post about it. The closest thing I could find was Twitter Digest, which instead pulls in all your tweets for the previous day. The problem, the Snook pointed out, is that I often tweet links to my own content, so it’s kind of redundant to have that on the blog. And my Instagram photos get posted twice too. So reluctantly I turned it off.

Then I decided to poke around in the Twitter Digest code and had an epiphany. I realised that all I needed to do was change a single line to get what I wanted! From this:

define('WS_API_USER_TIMELINE', 'https://api.twitter.com/1.1/statuses/user_timeline.json');

To this:

define('WS_API_USER_TIMELINE', 'https://api.twitter.com/1.1/favorites/list.json');

Works like a charm! And pretty easy to replicate if the plugin gets updated and overwrites the change. I figured I’d share it here in case anybody else is interested. And thanks to Tim Beck for providing the plugin in the first place. (I’m emailing him a link to this – I think it would make a nice option to incorporate in a future release.)