简体   繁体   中英

Log in twitter in android

I use the library "twitter4j" to interface with Twitter API. I need to write log in code but i don't understand very well how i can do it. I must write an application where user can specify username and password and i must take this value(username and password) and log in Twitter. I find a lot of kind documentation but I don't understand how I must use it. In details I don't understand why I must create an application with twitter account like this:

http://xmeng.wordpress.com/2011/07/10/how-to-handle-sign-in-with-twitter-using-twitter4j/

I need to log in with username and password but the example on the web log in with CONSUMER KEY and CONSUMER SEGRET KEY can someone help me with some documentation?

I need to log in with username and password but the example on the web log in with CONSUMER KEY and CONSUMER SEGRET KEY

The Twitter API uses OAuth authentication . This means you don't directly use the username/password, but instead use OAuth tokens returned to you after the user logs into Twitter. There is no documentation to show you how to just use the username/password because that's not how the Twitter API is intended to be used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM