How to autologin to twitter by providing the username and password using API?

2,348 views
Skip to first unread message

karthi

unread,
Jun 16, 2011, 6:19:14 AM6/16/11
to Twitter Development Talk
Hi i am using twitter oauth for achieving the auto-login concept by
providing the username and password. I am only able to get the data
from my twitter account. How do i login to twitter
by providing the username and password as parameters to some function
which may be twitter
API login function or whatever the function. did anyone come across
this issue? If so please
process me the code or links. Thanx in advance.......

Scott Wilcox

unread,
Jun 16, 2011, 10:12:59 AM6/16/11
to twitter-deve...@googlegroups.com
Are you attempting to 'auto-login' to the twitter.com site or perform actions with the Twitter API for various users?

The first, can't be done. The second will be xAuth which in turn will provide OAuth tokens for your application to use on behalf of a user.

You can read more about xAuth at http://dev.twitter.com/pages/xauth

> process me the code or links. Thanx in advance...….

--
Scott Wilcox

@dordotky | sc...@dor.ky | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580

Karthikeyan P

unread,
Jun 17, 2011, 1:02:24 AM6/17/11
to twitter-deve...@googlegroups.com
Thanks Scott Wilcox for your information,  

I want to achieve the following using oauth twitter API or xauth... or some script

1) I have an icon(twitter) in my air application which has some background details like url(www.twiiter.com) , username , password.

2) if i click the twitter icon, i want the twitter site to login automatically and to be rendered on my AIR browser(webkit) .

3) It can be anything like Twitter API or some script which does the login mechanism.

I am stuck with this , How do i login to twitter using auto login......

I am looking at the oauth but i can get only the data in the respective twitter account, I dont want the data , I want it to be logged in and redirect it to the home page. This is the flow i want to achieve in my application...... can anyone help me on this...... thanks in advance.....

Matt Harris

unread,
Jun 23, 2011, 3:08:05 PM6/23/11
to twitter-deve...@googlegroups.com
Hi Karthikeyan,

The Twitter API doesn't provide a way for an application to log a user into Twitter.com.
What information are you wanting to provide to the users of your application?

Best,
@themattharris
Developer Advocate, Twitter




--
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk

Karthikeyan P

unread,
Jun 24, 2011, 12:40:48 AM6/24/11
to twitter-deve...@googlegroups.com
For example i have custom twitter icon in my application and when i am adding this icon to the application, i have also added the www.twitter.com, username,password. So when i am clicking the icon it takes me to the twitter site and auto fills the username and password. and logins and shows me the home page on my AIR HTML browser. This is the content to show in the application.

Matt Harris

unread,
Jun 24, 2011, 4:20:53 PM6/24/11
to twitter-deve...@googlegroups.com
Hi Karthikeyan,

In our Terms of Service ( http://dev.twitter.com/pages/api_terms ) we say that a Service should not replicate, frame, or mirror the Twitter website or its design. In addition, automating the login to twitter.com isn't something you should be doing or are allowed to do.

Instead you should use the Twitter APIs to provide interactivity with Twitter.

What actions would like people to be able to do inside you application?
If you can provide some examples of what you would like users to be able to do, we can make recommendations on the API methods to use.

Best,
@themattharris
Developer Advocate, Twitter




On Thu, Jun 23, 2011 at 9:40 PM, Karthikeyan P <karthi...@gmail.com> wrote:
For example i have custom twitter icon in my application and when i am adding this icon to the application, i have also added the www.twitter.com, username,password. So when i am clicking the icon it takes me to the twitter site and auto fills the username and password. and logins and shows me the home page on my AIR HTML browser. This is the content to show in the application.

--

Karthikeyan P

unread,
Jul 9, 2011, 1:28:22 AM7/9/11
to twitter-deve...@googlegroups.com
Hi Matt Harris,

I will explain it very clearly on what I should do in my application.

Basically I am developing an AIR application to connect to the multiple twitter
accounts concurrently using Twitter API. The application user is connected to multiple twitter accounts simultaneously. Once he adds all accounts to the application.  The next time when the user logins into the application they are immediately connected to all their twitter accounts without authenticating again. Switching between accounts does not require the user to log off one account. All the accounts should be alive.

This is what i need to achieve in my application. Can you help me on this.
How the  
API will support for this scenario. 

Best,
Karthik.
Reply all
Reply to author
Forward
0 new messages