Twitter β€œOffline” Developer Access?

I worked closely with social integration and an independent authorization structure. I know that, like Facebook, Twitter implements a hook for its applications. My question is, is there a way to keep the access token permanently? Just as Facebook has offline access, I would like to be able to ask the user for only one confirmation of my application (this is just for ease of use).

+4
source share
1 answer

When you implement OAuth for Twitter, you get two tokens called OAuthToken and OAuthTokenSecret. You store these values ​​in a settings file or in a cookie or in a database (or something else), and then use these tokens when sending API requests in the future. This eliminates the need for user authorization of the application each time.

Now, if the user revokes your rights to the application, then the tokens will no longer work.

+8
source

All Articles