0

I know there are lot of posts and blogs regarding this error but most of the answers were related to the wrong url in the OAuth Redirect URIs and have tried all of them. Currently I trying to login with facebook on my localhost only.

enter image description here

any help would be appreciated as I am struck here for a long time.

arunoday singh
  • 222
  • 2
  • 13

2 Answers2

1

finally i was able to resolve it. I added the test app by clicking on the option button of the my app and then creating test app for it.

arunoday singh
  • 222
  • 2
  • 13
0

In oauth2 (google, facebook, linkedin, etc) there are 2 parameters that need to be configured:

  • domain or origin
  • redirect or callback

In Facebook App Settings we have:


App Domain (Your problem)

sample: acme.com

The domain should be without "https" or "www" or "subdomain":

fb


Site URL

sample: http://acme.com/


OAuth redirect URI

sample: http://acme.com/auth/facebook/callback

/auth/facebook/callback must be a route in your nodejs express.

Advice

Review char by char the explained values in your facebook configuration page.

Source

JRichardsz
  • 14,356
  • 6
  • 59
  • 94