Omniauth Facebook authentication on localhost

Ryan Foster picture Ryan Foster · Dec 31, 2010 · Viewed 20.8k times · Source

I am trying to set up Omniauth as described in this Railscast. While it works with Twitter, I am unable to get it working with Facebook. I also set up 'http://localhost:3000' as siteurl and 'localhost' as domain but still see the following error message in the browser:

Invalid redirect_uri: Given URL is not allowed by the Application configuration.

Does anyone of you have any suggestions on how to fix this? Thanks in advance.

Answer

Chrisjschmitt picture Chrisjschmitt · Jan 1, 2011

Take a look at the redirect in the URI. Mine read localhost:3000 so I changed the Site URL to "http://localhost:3000/" and it worked.