Have user log into twitter


I know I can directly plug in my oauth access tokens from the developer dashboard, but how can I have a user ‘log in’ to twitter, so that I can use the access tokens to retrieve their data. I am using the TwitterAPIExchange.

The question is, how can I have a user log in, so that I can get their access tokens. That way I could do things like get their home timeline. Do I have this whole process completely wrong? I tried reading through the documentation for the twitter API, but I just don’t understand it. I hope my question doesn’t get suspended for being too vague or something. If I need to provide any more information, please tell me. If there are any resources you can point me towards, that would be very much appreciated as well.