By keithj0nes
Hi all,
I’m having an issue when I try to log into Facebook using Oauth.
When I’m confirmed logged in, it wants to redirect me to my Digital Ocean IP address instead of the hostname (where it originally came from.) Here is the error I’m getting :
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.
This error means I need to add the redirect URI to my Facebook Developers App, but I want it to redirect to my URL hostname and not my IP address. I tried fixing it on the Facebook side but no luck, so I’m thinking it might be a Digital Ocean issue.
The link is a screenshot of the error / URL address bar.
https://i.imgur.com/4WUHbrF.png
Any ideas? Keith
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You cannot use IP addresses to redirect to them you need to use domain names or sub-domains.
Please check here
I hope this helps.
Welp, I’m an idiot. I spent around 3 hours trying to figure out this problem, and of course figured it out RIGHT AFTER I posted this question.
It had to do with my passport.js file using the IP address as a callbackURL for the Facebook Strategy that I had set months ago. It was working just fine.
If I could figure out how to delete this thread, I would! Sorry for the false alarm!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.