Question

I know this has been asked many times, but the solutions aren't working for me. I am using omniauth/devise with Facebook in my Rails app and I keep getting the stupid error message when directing to login page. ""error": { "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.", "type": "OAuthException", "code": 191 }"

I tried all the solutions such as local host link,local IP address, and many other ones. I don't know whats causing it.

Était-ce utile?

La solution

I'm assuming from the phrasing of your question you are looking to get this working in dev mode.

Under your apps settings in the facebook developer center make sure you have checked the box that says 'Website with Facebook Login' and enter the url with the port you are using: http://localhost:3000. Additionally, Make sure the app domain is set to localhost as well.

You may also need to toggle sandbox mode to 'Disabled'. Source: a config from a working devise/omniauth/facebook app running in dev mode.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top