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.
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!