redouane59 / twittered

Twitter API client for Java developers
Apache License 2.0
238 stars 65 forks source link

When you call the getUserTimeline() function, you don't get the images from the tweets #381

Open GotOneShot opened 2 years ago

GotOneShot commented 2 years ago

I'm calling the getUserTimeline() with additionalParams in my code, but I don't get the images from the tweets. Especially, im meaning the tweet.getMedia().get(0).getUrl() call. You don't have data under getMedia(). But if you do the same by calling the getTweet() function, the media is existing.

redouane59 commented 2 years ago

Hey, you're right it looks like the media object is empty. Did you try to use tweet.getAttachments().getMediaKeys()[0] ?

GotOneShot commented 2 years ago

Hi I just tried, getAttachments().getMediaKeys()[0] also results in a empty (Null) Object

redouane59 commented 2 years ago

Really strange, can you give me an example of tweet ID ? Because I tested yesterday and I had something for tweets with images.

GotOneShot commented 2 years ago

Thanks for the reply, a test Tweet ID would be "1538911345906794500"

redouane59 commented 2 years ago

Can you please do the same test from postman and see if you have the needed information ?