Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Character count should take into account if images are attached to the tweet or not #60

Open
jemchicomac opened this issue Apr 25, 2015 · 2 comments

Comments

@jemchicomac
Copy link

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

@julien-c
Copy link
Owner

Thanks for reporting! To your knowledge, is it 22 characters per image, or for all the associated images?

@jemchicomac
Copy link
Author

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:

image

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:

image

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 :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants