Twitter has updated their API from 1 to 1.1 where we needed a code for posting tweets from our website. I searched lot of codes but finally came across this one here.
We first need to create a twitter application here. Sign in with your twitter account. After creating a application, you ll get your access token, access secret, consumer key and consumer secret. Make sure, that your application is on read and write permission.
