knitr::opts_chunk$set(echo = TRUE, eval = FALSE, comment = "#>", collapse = TRUE)
Error in init_oauth1.0(...
Occurs when attempting to create a token
## these are fake keys #> create_token( #> app = "rtweet_token", #> consumer_key = "XYznzPFOFZR2a39FwWKN1Jp41", #> consumer_secret = "CtkGEWmSevZqJuKl6HHrBxbCybxI1xGLqrD5ynPd9jG0SoHZbD") # `Error in init_oauth1.0(endpoint, app, permission = params$permission) : # client error: (401) Unauthorized`
0.6.6
Callback URL
option in "Settings" tab at https://apps.twitter.com match exactly the following: http://127.0.0.1:1410
Keys and Access Tokens
tab at https://apps.twitter.com)Keys and Access Tokens
tab, click Regenerate Consumer Key and Secret
. Create a new token using the new key and secret.Error in oauth_listener(...
Occurs when attempting to create a token (using in-browser authorization method)
## these are fake keys #> create_token( #> app = "rtweet_token", #> consumer_key = "XYznzPFOFZR2a39FwWKN1Jp41", #> consumer_secret = "CtkGEWmSevZqJuKl6HHrBxbCybxI1xGLqrD5ynPd9jG0SoHZbD") #Error in oauth_listener(authorize_url, is_interactive) : # httpuv package required to capture OAuth credentials.
install.packages("httpuv")
Warning: 89 - Invalid or expired token.
Occurs when sending request to Twitter API. It means you have invalid or expired keys stored in access token.
#> search_tweets("lang:en") #Warning: 89 - Invalid or expired token.
Keys and Access Tokens
tab, click Regenerate Consumer Key and Secret
. Create a new token using the new key and secret.## these are fake keys #> create_token( #> app = "rtweet_token", #> consumer_key = "XYznzPFOFZR2a39FwWKN1Jp41", #> consumer_secret = "CtkGEWmSevZqJuKl6HHrBxbCybxI1xGLqrD5ynPd9jG0SoHZbD")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.