views:

74

answers:

1

Hi

I am developing an application which require integration with twitter. I am using twitter4j api .

I have to persist the ouath tokens so that my application can interact with twitter in future. I save the access token and access token secret . However when I am reusing them I am getting an exception token expire .

Could you please let me know the way I can reuse them and what is the expiration period of the ouath tokens ?

+1  A: 

from Twitter's OAuth FAQ:

How long does an access token last?

We do not currently expire access tokens. You access token will be invalid if a user explicitly rejects your application from their settings or if a Twitter admin suspends your application. If your application is suspended there will be a note on your application page saying that it has been suspended.

sfussenegger