Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New 280 Twitter character limit - Anyone using yet? #252

Closed
EwenH opened this issue Nov 8, 2017 · 2 comments
Closed

New 280 Twitter character limit - Anyone using yet? #252

EwenH opened this issue Nov 8, 2017 · 2 comments

Comments

@EwenH
Copy link

EwenH commented Nov 8, 2017

Not an issue per-se but having a brief read of the API it looks rather complex where you post your tweet of 140 and then add to it but I could be wrong.

Has anyone played with it yet and can add an example?

@ghost
Copy link

ghost commented Nov 8, 2017

Seems like it works with new capacity without changing anything

https://twittercommunity.com/t/updating-the-character-limit-and-the-twitter-text-library/96425

Starting today, you’ll be able to use the standard Twitter API to send these longer updates in those languages, with no code changes required relating to the POST statuses/update endpoint

I've just changed value to reflect a new capability (277 instead of 137):

$caption = substr($quote['quote'], 0, 277);
		$caption = trim($caption);
		if ( mb_strlen($quote['quote']) > 277 ){
			$caption .= '...';
		}

@EwenH
Copy link
Author

EwenH commented Nov 9, 2017

Thanks @web2033 - I have just tested this on an alert tweet and it works perfectly. As with you, I upped the cutoff and hey presto where I had to send two or more tweets previously, it should fit more often than not into one.

@EwenH EwenH closed this as completed Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant