[twitter-dev] Re: How to Keep Profile Image Urls up to date

2009-07-10 Thread Beier

There is nothing from the API that tells you a user's image has
changed. You can either refresh a user's image every time they login,
or you can create a periodic job to update all your users profile
images

On Jul 10, 10:28 am, Francis Shanahan francisshana...@gmail.com
wrote:
 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?

 -fshttp://tweetarun.com


[twitter-dev] Re: How to Keep Profile Image Urls up to date

2009-07-10 Thread Greg

It's hard to say. For my application (http://tweetsort.com), I have it
updating when the users logins in. It automatically updates their
information based on their last tweet.

I'm not sure if there is a better way - but it works for me.

On Jul 10, 1:28 pm, Francis Shanahan francisshana...@gmail.com
wrote:
 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?

 -fshttp://tweetarun.com


[twitter-dev] Re: How to Keep Profile Image Urls up to date

2009-07-10 Thread Francis Shanahan

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.
-fs

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
 francisshana...@gmail.comwrote:



  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
 http://tweetarun.com

 --
 Internets. Serious business.


[twitter-dev] Re: How to Keep Profile Image Urls up to date

2009-07-10 Thread JDG
They've mentioned before that they don't want to do this to prevent
harvesting.

On Fri, Jul 10, 2009 at 22:00, Francis Shanahan
francisshana...@gmail.comwrote:


 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.
 -fs

 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
  francisshana...@gmail.comwrote:
 
 
 
   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
  http://tweetarun.com
 
  --
  Internets. Serious business.




-- 
Internets. Serious business.