Right now I update the profile image every time the user comes back to
the site but obviously I'm getting broken images in the meantime.
I'll write a job to update these as JDG has mentioned but it certainly
is not ideal. The biggest problem has been the "Green Overlay" and
most recently "LiveStrong" overlay memes.
Not sure why Twitter doesn't just abstract the profile image with some
standard URL scheme.
On Jul 10, 6:45 pm, JDG <ghil...@gmail.com> wrote:
> I don't know if twitter's site supports all HTTP calls, but you could make a
> HEAD call to the profile img url you have stored and if you get a 404, could
> make another call to their profile to get the new image url. It's an extra
> HTTP call, sure, but you'd be most liable to get the correct information
> that way.
> Doug / Matt / other Twitter staff member, do you know if the web servers
> that host the images (amazonaws or twimg) support HEAD calls?
> On Fri, Jul 10, 2009 at 11:28, Francis Shanahan
> > When a user visits my site (tweetarun.com) I make a call to grab their
> > latest profile data and store their profileImageUrl in my database.
> > This url is used on my site to display their profile image on a
> > "Members" widget which is accessible to all visitors, not just
> > authenticated twitter users.
> > If the user changes their profile image on Twitter.com, my site has no
> > knowledge of this other than the cached Profile Image url is now
> > broken.
> > Is there some method I'm missing to keep these image urls up to date?
> > -fs
> Internets. Serious business.