Character count should take into account if images are attached to the tweet or not
jemchicomac opened this issue · 2 comments
Character counter always assumes 140 character long tweets. To my knowledge, tweets with images has a limit in the number of character of 118 (images are turned into t.co links of fix size of 22)
Upon my tests, tweets with +118 chars and images are not actually posted to twitter, neither the "post now" nor the "add to circular" ones
Thanks for reporting! To your knowledge, is it 22 characters per image, or for all the associated images?
Hi! I do not know in detail. What I can tell is Buffer only allows embedding 1 and only 1 image and this is how they counts the remaining letters:
In this case, allows 117 characters as you can see in the example image. A three character tweet ("one" in this case) + an image leaves you with 114 remaining characters, I believe 22 for the link and 1 blank space.
Images are turned into twitter links (http://t.co/...) of a fix size. Seems that GET /help/configuration tells you in real time the length of these URL because seems to change over time. Nowadays seems t.co links lenght is 22 characters:
You can read this here: https://dev.twitter.com/overview/t.co
Sorry in advance if my analysis contains any kind mislead. I'm not an expert on this twitter-API details :-)