How can I post a message to twitter using only javascript (no serverside authentification).
For example I have a form with username, password, and a text field and a submit button.
I want to use it on the backend of a website.
I have read this, http://dev.twitter.com/doc/post/statuses/update but I do not know how to handle the authentification of the username.
(I know that开发者_运维百科 it involves many security risks doing it this way)
either use the javascript twitter api helper at http://sources.disruptive-innovations.com/twitterHelper/tags/latest/TwitterHelper.html
or the far easier way is to use the @anywhere api from twitter (http://dev.twitter.com/anywhere/begin)
Thanks @Nikolaus Gradwohl!
I made a little example for myself.
https://gist.github.com/2844705
A very helpful post : http://oodlestechnologies.com/blogs/Twitter-integration-on-PhoneGap-using-ChildBrowser-and-OAuth-for-iOS-and-Android-Platforms
Hope this helps ! Bye !
精彩评论