Auto-authorize Twitter web application

I use Oauth to create a way for users of our site to log in using my Twitter account. However, it is rather annoying that every time they click to enter their Twitter account, they have to provide access every time.

Could it work so that if it was granted, if it does not have to continue to provide access? Therefore removing the step. I use the steps found in:

http://net.tutsplus.com/tutorials/php/how-to-authenticate-users-with-twitter-oauth/

Thanks for any feedback!

+3
source share
3 answers

I found the answer after talking with some developers on twitterapi irc

, https://twitter.com/oauth/authorize oauth, https://twitter.com/oauth/authenticate. .

+13

, , , - API Twitter.

, , . ( , ). , , API.

, , .

+1

You need to run the token / token secret that you get in the database or other long-term storage method. Then you pass it to an object that performs OAuth authentication, so you don't have to constantly ask your user. With PHP, you can store them in MySQL or a similar database and load them in $_SESSIONwhen the user logs in to pass values.

0
source

All Articles