Links


#1

Hi, with the following code in java (using twitter4j) get the links of each tweet:
URLEntity [] u = null;
u = status.getURLEntities();
int i2;
for(i2=0;i2<u.length;i2++){
System.out.println("URL: " + u[i2].getText());
enlace++;
}

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?

Thank you.