Normally, the entities structure returns this information if the tweet has an url in it:
[urls] => Array
(
[0] => stdClass Object
(
[url] => http://t.co/AKNMYr3R
[expanded_url] => http://bit.ly/Qqa3gz
[display_url] => bit.ly/Qqa3gz
[indices] => Array
(
[0] => 92
[1] => 112
)
)
)
Now check out the outcome for this other tweet:
[urls] => Array
(
)
In the case of this specific tweet, nothing happened, probably because the url has a special spanish character in it. Is this bug going to be fixed anytime soon?