0

For android, How can you get the home feed with friends thumbnails with it? Atm I'm using Twitter4j but I can't seem to find anything. I can get the feed but how do I get the thumbnails with it? Thumbnails being the users profile pic next to the tweet.

Any ideas?

rennoDeniro
  • 920
  • 2
  • 8
  • 19

1 Answers1

2

If you have a Tweet object, you can use the Twitter getProfileImage method and the user's screen name.

If you have a Status object, you can just call getUser, then getProfileImageURL on the returned User object.

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
  • Thanks for the reply, in reference to the first example, the documentation says that getProfileImage "This method should only be used by application developers to lookup or check the profile image URL for a user. This method must not be used as the image source URL presented to users of your application. " – rennoDeniro Oct 15 '12 at 16:56
  • @rennoDeniro If you're working from a `Tweet` object, I'd call that method once per user and cache the resulting image. I think they don't want you calling that method repeatedly because it redirects to the image resource automatically. You should wrap it in a method that checks to see if the user's image has already been fetched, and use the cached image if it has. – Bill the Lizard Oct 15 '12 at 17:01