Yes, this will work. Twitter's implementation of OAuth is not up to spec, so they issue long-lived tokens (that never expire). These can be stored in a database and reused forever (or until Twitter updates their implementation of OAuth). Although this has serious security risks, it makes the implementation of a multi-account solution very easy.
If I were you though, I would query the access token at the beginning of each session (as per oauth spec) instead of storing them. At some point, Twitter is bound to get a lot of bad press for their poor implementation of OAuth, and I bet the first thing they'll do is switch to short-lived tokens. It's only a little more effort, and it makes your app future proof. Adriaan Pelzer RAAK putting you in touch with your crowds http://www.wewillraakyou.com <http://www.wewillraakyou.com>twitter: http://www.twitter.com/adriaan_pelzer linkedIn: http://uk.linkedin.com/pub/adriaan-pelzer/4/874/860/ skype: adriaan_pelzer <http://uk.linkedin.com/pub/adriaan-pelzer/4/874/860/> +4478 7978 1743 On Fri, Nov 26, 2010 at 9:08 PM, Edward Hotchkiss < edw...@edwardhotchkiss.com> wrote: > save the token in a db. > > On Nov 26, 2010, at 7:20 AM, Tom Callahan wrote: > > > Hi All, > > > > I am trying to develop a platform where I can allow people to login & > > add multiple twitter accounts. They will be able to post tweets, view > > posted tweets, view tweet replies etc. > > > > I came to know that Basic Authentication has been stopped for Twitter > > API & so I am using oAuth to connect to Twitter. > > > > I have registered my application in http://dev.twitter.com/apps & have > > got the access token and access token secret. However, the way I see > > it now, for every Twitter account that gets added to my application, > > the user will have to generate the access token. This process is very > > complicated & is not user-friendly. > > > > I am requesting you to please let me know how can I find a solution > > for the same where I can automatically get the access token for all > > the twitter accounts that gets added to my application. I have seen a > > similar process in use here - http://mediafunnel.com/ > > > > Please help me with this. Your support & cooperation will be highly > > appreciated. > > > > Thanks in advance!! > > > > Regards, > > Tom > > > > -- > > 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 > > > Regards, > > -------------------- > Edward Hotchkiss > edw...@edwardhotchkiss.com > http://www.edwardhotchkiss.com/ > -------------------- > > > > -- > 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 > -- 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