Error in init_oauth1.0(...

Solutions

  1. Make sure you have at least rtweet version 0.6.6
  2. Check callback URL
  3. Make sure Callback URL option in “Settings” tab at https://apps.twitter.com match exactly the following: http://127.0.0.1:1410
  4. Make sure API keys match exactly the values for your Twitter app (found under the Keys and Access Tokens tab at https://apps.twitter.com)
  5. In your app page at https://apps.twitter.com/ under the Keys and Access Tokens tab, click Regenerate Consumer Key and Secret. Create a new token using the new key and secret.
  6. Update the {httr} package
  7. Update R

Warning: 89 - Invalid or expired token.

Context

Occurs when sending request to Twitter API. It means you have invalid or expired keys stored in access token.

Solutions

  1. Create new token using the keys from your previously created Twitter application found at https://apps.twitter.com
  2. In your app page at https://apps.twitter.com/ under the Keys and Access Tokens tab, click Regenerate Consumer Key and Secret. Create a new token using the new key and secret.