Help with Oauth & update status

45 views
Skip to first unread message

Claudia

unread,
Aug 16, 2010, 11:01:09 PM8/16/10
to Twitter Development Talk
Hi all

I'm just getting versed in Oauth, and was hoping someone might have
some help or example code to keep me moving on this. I'm creating this
web experience using a single twitter account, and hashtags and @ user
mentions to distinguish users who are updating. So - for updating
status, I need to authenticate the single user of the account in the
background of the web app so that statuses can be successfully posted.
I'm using jSON and Javascript//jQuery and would love it if anyone
could point me toward help or samples of something similar.

Thank you!
Claudia

Matthew Cornell

unread,
Aug 29, 2010, 2:13:52 PM8/29/10
to Twitter Development Talk
I'd like to see this too.

Taylor Singletary

unread,
Aug 30, 2010, 10:36:37 AM8/30/10
to twitter-deve...@googlegroups.com
There is no secure method to accomplish this purely in Javascript, as you would have to hard code your consumer key & consumer secret as well as an oauth_token and oauth_token_secret for the Twitter account you want to use for all operations. With these pieces of information, anyone would be able to tweet on behalf of your application and account.

In a case like this, you'd want to implement most of this logic server-side, where you can keep the hard-coded credentials securely. You could potentially use Javascript to speak to your own servers to hustle the process along. 

We offer a feature on dev.twitter.com that allows you to easily obtain an access token for the user who "owns" the application, which would at least help you in that you'd not have to implement the negotiation steps of OAuth.

Taylor

On Sun, Aug 29, 2010 at 11:13 AM, Matthew Cornell <matthew...@gmail.com> wrote:
I'd like to see this too.

--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en

Reply all
Reply to author
Forward
0 new messages