Omniauth facebook, how to properly configure configurations in facebook apps toolbar?

I know this question has been asked many times, but none of them have helped me.

I try to login with facebook on my site, but I get an error message:

{"error":{"message":"Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request","type":"OAuthException","code":100,"fbtrace_id":"DV9+XV2aZn5"}}

I have the following configs in facebook application control panel:

enter image description here enter image description here

I seem to be missing something with setting up urls, but can't figure that out.

Update

application / models / customer.rb

devise :omniauthable, omniauth_providers: [:facebook]
+4
source share
3 answers

omniauth URL, :

http://localhost:3000/auth/facebook/callback

http://localhost:3000, .

0

devise facebook omniauth, URI OAuth:

http://localhost:3000/users/auth/facebook/callback

http://localhost:3000/auth/facebook/callback , devise , omniauth.

, uri

0
source

Source: https://habr.com/ru/post/1613093/


All Articles