OAuth authentication is required with Twitter's API v1.1

78 views
Skip to first unread message

Médhi Famibelle

unread,
Jan 18, 2015, 7:38:51 PM1/18/15
to shinyap...@googlegroups.com
Hi everyone,
I am working on a very basic Twitter query tools .
Everything is working on my local RStudio app.
Deploying the App on shiny runs weel
But it comes to execute from shiny https://medhi.shinyapps.io/DevelopingDataProducts/ I get the "OAuth authentication is required with Twitter's API v1.1" error.
this is very frustrating
How can I get Shiny to be able to query Twitter ?

@medhi

ambra abdullahi

unread,
Sep 1, 2015, 6:06:50 AM9/1/15
to ShinyApps Users
Hi, I encounter the same problem. Did you achieve to solve it? It would help me so much

Sushanta Deb

unread,
May 20, 2016, 1:08:31 AM5/20/16
to ShinyApps Users
Hi Medhi,

Any update on solving this issue yet?  Please help the community in case you are able to crack this problem

Thank you
SD 

Tareef Kawaf

unread,
May 20, 2016, 6:38:14 AM5/20/16
to Sushanta Deb, ShinyApps Users
There is a bug with the IDE today which doesn't upload the '.' files which would be needed to communicate with various services..  You can get around that problem by running: rsconnect::deployApp()  

Sorry about the hassle, we are hoping to get this fix in, into the next release of the iDE.

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/87e1d50b-4c6f-42a5-b2c8-865031de81ea%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Sushanta Deb

unread,
May 20, 2016, 7:54:45 AM5/20/16
to ShinyApps Users, sushant...@gmail.com
Hi Tareef,

Would it be the same issue with my facebook authentication query or is it something else?  Below runs fine locally

I am trying to get my users authenticated through facebook in my app.  The functionality works perfectly when run locally but fails when run over shinyapps.io.

Details:


library(httr)
library(Rfacebook)
app <- oauth_app('facebook', appid, secret)
Sys.setenv("HTTR_SERVER_PORT" = "1410/")
tkn <- oauth2.0_token(
  oauth_endpoints('facebook'), app, scope = 'ads_management',
  type  = 'application/x-www-form-urlencoded', cache = FALSE)
tkn <- tkn$credentials$access_token
fbname <- getUsers("me", token=tkn)


Do I need to change the HTTR_SERVER_PORT from 1410/ to something else or do I need to change the settings of my App in https://developers.facebook.com/apps/

Tareef Kawaf

unread,
May 20, 2016, 9:04:58 AM5/20/16
to Sushanta Deb, ShinyApps Users
it is not the same issue, with facebook it is trying to make a call back, and the port that you are listening on is blocked by shinyapps.io  

Unfortunately this is not a supported configuration on shinyapps.io

Reply all
Reply to author
Forward
0 new messages