How To Generate Twitter API & Access Token For Authentication in R



First we need to create an app on Twitter.

Got to apps.twitter.com/ and log in with your Twitter Account.

Click on create new app and Fill all the details

You can name your Application as per your convenience. Description can anything. Twitter requires a valid URL for the website, but you can also enter localhost or any website.

Click on the Key and Access Token bar on top to get access to your API key and Access token.




Click on Generate My Access Token if you haven't generated one





Note down your API Key, API Secret, Access Token and Access Token Secret for Twitter Mining in R.