Twitter App: Twavatars
After attending the Twitter Developer Nest (which I recommend you attend), where I talked about FootyTweets (see my presentation here), there was a discussion about how the Twitter API handles user avatars.
The main problem is that the URL that is given in the API is a direct URL to the image. So if the user changes their image after your API call is done, you will get a broken image/404.
So Twavatars (twitter.com/twavatars) is my solution. Whenever you want to display a users avatar instead of doing an API call you instead use a Twavatar URL, this collects the relevant users image (depending on the size) and returns an image. This means the URL can be used directly in an <img>.
This is an example URL (i am looking at getting a domain name):
http://twavatars.ollieparsley.com/user/10721822?s=thumb
It returns this image:
I think its a nice way of handling Twitter avatars. If you want to know more please head to http://twavatars.ollieparsley.com