Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

redirect uri not supported error in out of band authentication

redirect uri not supported error in out of band authentication

Expert Contributor

I am using R studio server and trying to connect to facebook API using library fbRads.

Now, I am opting for out of band authentication to generate oauth_token for the reason mentioned here on this official link by Rstudio:

https://support.rstudio.com/hc/en-us/articles/217952868-Generating-OAuth-tokens-from-a-server

it finally asks me to point the browser to this url and then enter the authorization code:

Please point your browser to the following url: 

  https://www.facebook.com/dialog/oauth?client_id=611685395673327&scope=ads_management&redirect_uri=ur...

Enter authorization code:

In browser window, I get the error:

The redirect_uri URL is not supported

Then I tried doing the same thing on local and I get the same error on local as well.

If I do not opt for out of band authentication on local, it works just fine but I essentially need to work it out with out of band authentication.

How do I fix this on server?

Don't have an account?
Coming from Hortonworks? Activate your account here