Authorize Application Every Time

Apr 28, 2015 at 10:07 PM
Hi Linvi,

I just started using your library for a very basic Twitter function for my app and I used the 3-legged Authentication example you provided to provice authorization for our app to post tweets. However, every time the user logs into Twitter, they have to authorize our application every time. Is there a way to have one-time authorization so that every time the user logs in, instead of getting directed to Twitter for authorization yet again, it will simply redirect them back to the given callback URL?

Thanks,
Josh
Coordinator
Apr 29, 2015 at 1:40 AM
Hi Josh,

After the callback URL, you will get the credentials for the user. These credentials can be used all the time you want, until the point when the user revokes the credentials.

Therefore, if you do not want to make the user login each times, you need to store the User Key and User Secret Key information in your database and reuse them when he login again.

Cheers,
Linvi
Marked as answer by linvi on 4/29/2015 at 1:54 AM