Hi, with the following code in java (using twitter4j) get the links of each tweet:
URLEntity  u = null;
u = status.getURLEntities();
System.out.println("URL: " + u[i2].getText());
but if for example the tweet has a url and then has a link to a photo is uploaded, the photo also starts with http:// … and does not count as url.
As we can also get the links of photos?