Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Omniauth Facebook authentication on localhost

Tags:

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.

like image 795
Ryan Foster Avatar asked Dec 30 '10 23:12

Ryan Foster


1 Answers

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.

like image 66
Chrisjschmitt Avatar answered Oct 05 '22 22:10

Chrisjschmitt