Displaying your latest Twitter entries

DISCLAIMER: The Twitter REST API v1 is no longer active.

Helping Carlos Eduardo from Webstandards blog, I’ve adjusted this coded posted at WPRecipes. We wanted to show the latest twitter entries in a WordPress blog.

You can show how many tweets you want with this updated code, instead of just the last one. Another improvement is the session-based cache to speed things up.

UPDATE: Due to charset compatibility I switched from regular expressions to json_decode function. It also makes the code smaller. Continue reading “Displaying your latest Twitter entries”

Advertisements