Tweet using javascript

Is there a way to create tweets on the client side using javascript, a text box and a submit button? The process would be to enter the text on Twitter into the text field, press the button, then scroll through it using an authenticated account, all on the client side.

+4
source share
4 answers

"Yes".

However, you need to get an authenticated client-side account. Twitter does provide basically a RESTful API for all kinds of things, including sending tweets with which you could access through AJAX, however the login action can be difficult because Twitters relies on OAuth as a login mechanism . I'm not sure how you can get around this completely on the client side.

+5
source

I know that this is not quite what you are asking for, but you can also post to Twitter as follows:

<a href="http://twitter.com/home?status=Custom%20status%20here" target="_blank">Post to Twitter!</a>

+2
source

I found that the best solution for me was the http://twitter.com/share link on the client side or the anchor tag and use twitter to log in. The provided flaw is that I cannot customize the appearance of the input (with the exception of words that I can set by default), but this is the only way to find the client side to work without OAuth.

<a href="http://twitter.com/share?url=&" target="_blank">Create a Tweet</a>

Any other ways that I can provide more flexibility in my design are welcome.

+2
source

You can use Twitter @anywhere using something like this:

  twttr.anywhere(function (T) { T.Status.update("Hello World"); }); 

More information here: https://dev.twitter.com/docs/anywhere/welcome

0
source

All Articles