Twitter button not publishing shortened URLs


#1

t.co shortened URL shows up when clicking the button, but in my actual feed, it uses the long link (on all pages on our site)

Link to a story: http://www.nationalfootballpost.com/Breaking-down-Moss-vs-Revis.html

Tweet button produces preview with: Breaking down Moss vs. Revis | National Football Post http://t.co/xk5fVY0 via @mattbowen41

In my feed it displays: Breaking down Moss vs. Revis | National Football Post nationalfootballpost.com/Breaking-down-… via @mattbowen41

The link still works. But is this by design, or is something not functioning correctly?


#2

Hi Erik,

This is by design as you suggested.

All links sent through the Tweet Button will be turned into t.co links. When a tweet is delivered via the API to a client supporting [node:127], they have three versions of the URL denoted for them: the t.co version, the full URL originally supplied, and a “display URL” containing the ellipses at the end for efficient, tight display. The Twitter website leverages all this metadata to “unwrap” t.co URLs for display.


#3

How does the URL act when the Tweet is being Re-Tweeted, Quoted, etc? Does it continue to truncate?

This seems to make it difficult to Re-Tweet.


#4

When it’s retweeted using Twitter’s native retweet function, the tweet body is kept in tact as it was originally issued (meaning that the t.co link is preserved, along with the entity metadata associated with it). Behavior when quoting or using non-native retweeting will vary client to client depending on how much the app developer anticipates the needs of their users.


#5

Hey,
all this is nice but I need to copy that shortened link and insert into my database. How can I do that?
Reason to keep history of what has been tweeted and to know where and what was linked.


#6

You can’t accomplish that directly using the Tweet Button. You could potentially monitor the streaming API for links to your domain and track them that way.


#7

I have this problem:
The Tweet button I’m putting into my web page does not turned into t.co link, or even shortening.
Anyone could help me?

thanks!
Daniela
Santiago, Chile


#8

I have this problem:
The url m sharing using the tweet button, doesnt get shortened or turned into t.co link. Please help me to resolve this…Thanks
Tanima
India


#9