What is the usage of Access Token and Access Token Secret?


#1

Hello,
I have just started using Twitter API.
I started with application only authentication which a bearer token is returned.
(Oh meanwhile! How long the bearer token remains valid?)
I would like to know so how Access Token and Access Token Secret are useful? (In process of getting bearer token, Only Consumer Key and Consumer Secret were needed)


#2

Hello Amir! Thank’s for visiting the forums.

Access tokens are not explicitly expired. An access token will be invalidated if a user explicitly revokes an application in their Twitter account settings, or if Twitter suspends an application. If an application is suspended, there will be a note in the Twitter app dashboard stating that it has been suspended.

Check out this helpful guide that shows how to generate a bearer token for your oAuth: Bearer Token

Hamza