OAuth Domain when testing OAuth on c9


#1

Running Node.js on Ubuntu 14 and trying to build out my Facebook OAuth login feature. But I keep getting a:

“URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.”

… error when I try and test the integration.

Is there a support article or blog post showing the proper Facebook App test setting to accommodate Facebook authentication while in my c9.io dev environment?


#2

My guess would be that you haven’t configured your preview URL with Facebook. Sounds like the error is coming from their system, not Cloud9.

Somewhere in the App settings on Facebook, you want to add your preview URL, which looks like https://<project>-<user>.c9users.io