facebookdeviseomniauth-facebookruby-on-rails-5

Error from Omniauth using Facebook auth - Can't Load URL: The domain of this URL isn't included in the app's domains


I'm integrating Facebook with my app by following this link, everything works fine until I try to login via Facebook.

Then I'm keep on getting this error

enter image description here

This is my Facebook app setup:

enter image description here

I've tried several different ways of changing the app domain by following several tutorials.

I've tried:

and none seems to be working.


Solution

  • You should try setting up a facebook login product. Then under settings place localhost:3000/users/auth/facebook/callback under Valid OAuth redirect URIs. That's what got it for me.