Tweet Button fail by including long url in character count and not accouting for t.co truncation


#1

Hi, I am trying to develop a tweet button (iFrame version) for a wordpress site.

In an instance where there is a long url, the character count of this url is taken into account when working out the total tweet length, in a case where the body message + url exceeds 140c the tweet would fail to process (even though it would be under 140c after the url is truncated.)

e.g.

Raw url length = 100
Tweet bodt text length = 100
Total = 200

The tweet button rejects this since the 200 count exceeds the 140 limit by 60, even though the total count would be 120c after t.co truncation

Is there a way round this?

Hope this makes sense!! Thanks for you help :slight_smile:

Richard


#2

#3