Twitter API


In our application we need to sign in with twitter and post the message to their wall from here.Presently oauth tokens were expired frequently and we cant post it.Is there any solution for this where we can store the details of user and not allowing the user to login with twitter again.



If you are using PHP use sessions to store the details.


Thanks for ur valuable reply.By using sessions also its asking every-time to login.It should be one time login and store the tokens in db.The tokens are expiring.


Use the authenticate endpoint rather than authorize.