Need request access token very API call?


#1

I create a new project, then got custom_key/secret and access_token/secret, do I need to request access token again in my application? or just use these key/secret pair in application to call API?
does the access token be expired in some time?
Thanks!


#2

If I understood you correctly, you need that token. It stays valid unless the user decides to remove your app from the authroized apps list.


#3

https://dev.twitter.com/oauth/overview/faq:

###How long does an access token last?
We do not currently expire access tokens. Your 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.

###What do I do if an access token I have becomes invalid?
You should plan that a user’s access token may become invalid at any time and you will need to re-authorize for that user in the case that it does. Ensuring you handle this situation gracefully is imperative for a quality user experience.