Can the Twitter Module be enhanced to extract the actual URLs that are included in the tweets? Currently, Twitter shortens all URLs, irrespective of their length, using the t.co. However, the Twitter APIs provide Tweet Entities that can be used to extract the actual URL that was included in the original tweet.

I have modified the twitter.lib.php to extract the original URLs before the tweets are displayed on the web-page.

Please explore possibilities of including this code into the module.

Regards,
KH

CommentFileSizeAuthor
twitter-6.x-3.0-beta9-modifications.zip882 byteskjholla

Comments

jimbo_cambridge’s picture

I have opened a new issue for this in the 7.x branch - this would be a great feature if implemented.

juampynr’s picture

Status: Active » Closed (duplicate)

Closing in favour to #1520008: Extract actual URLs from t.co wrappers using Tweet Entities. The normal procedure is to keep a single issue for all versions and work from most recent branch backwards. This means that first it will be done at 7.x-3.x and then it will be ported to 6.x-3.x.

BarisW’s picture

xurizaemon’s picture

@kjholla, please resubmit your patch against #1530684: Replace twitter t.co shortened url's with original if you want this included?

the patches in zipfile here don't apply, and contain some additional functionality which is not part of this issue