Skip to content

Instantly share code, notes, and snippets.

@MarkEdmondson1234
Last active February 24, 2020 22:25
Show Gist options
  • Save MarkEdmondson1234/f058242a465a0004a17e to your computer and use it in GitHub Desktop.
Save MarkEdmondson1234/f058242a465a0004a17e to your computer and use it in GitHub Desktop.
Authenticate a Twitter app in R
# Refer to https://rtweet.info/
@PoojaBabu
Copy link

I executed the R script, the R console directed me to the twitter page to authorize my app, but instead of getting a PIN I got automatically redirected by Twitter to the web page I provided in the Twitter app. I tried it several times, I get no errors but also no PIN for R Studio.

@nithin7vnnr
Copy link

have u got any solutions to ur above problem

@palakbaid95
Copy link

After executing the last statement TwitterOAuth(), it is still giving similar error -
Error in function (type, msg, asError = TRUE) :
Unknown SSL protocol error in connection to api.twitter.com:443

I searched many forums and tried all those solutions but still it is not working.
I tried the following solutions to eliminate this issue :

  1. Checked the firewall status and have allowed R Studio and R session to access the network.
  2. Used library(installr), library(ROAuth), library(stringr).
  3. Reinstalled packages - twitteR, streamR

Need help to resolve this issue.
Thanks in advance :)

@MarkEdmondson1234
Copy link
Author

This code is 6 years old, it does not work anymore. Use https://rtweet.info/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment