Facebook Oauth redirects to IP address instead of domain name
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.