jnunemaker/twitter — Issue #224: Expanding t.co links ?
Author: kimptoc
Created: 2011-12-30 23:07:39+00:00
State: open

Hi,

Thinking out loud, I would like to expand t.co links to their expanded/original forms (and ultimately into hrefs, but thats later, in my view).

Any plans to add a method to expand "twitter entities"?

Something like this is mentioned on the t.co faq - https://dev.twitter.com/docs/tco-link-wrapper/faq (how do I render... )

And specifically this PHP solution is mentioned - https://github.com/themattharris/tmhOAuth/blob/master/tmhUtilities.php

I am thinking that this could be a method on the Status class, entified_text or expanded_text - which would t.co links turned into their expanded forms, eg "My new website http://t.co/abc" via new entified_text method would be "My new website http://www.kimptoc.net/" (assuming the entity referred to that site).

Interested in such a patch?

Thanks,
Chris