Open lcy101u opened 2 years ago
I have same problem when running in localhost. (FacebookTokenError: Can't Load URL: The domain of this URL isn't included in the app's domains)
but it works when deploy to heroku
@blender222 Looks like it is a bug from Meta (Facebook), I tried again in localhost and it works fine now.
facebook strategy
authenticate
This is what I got
Listening on http://localhost:3000 mongodb connected! FB authentication !!!! FB callback!!!! FacebookTokenError: Can't Load URL: The domain of this URL isn't included in the app's domains at Strategy.parseErrorResponse (D:_Projects\todo-list\node_modules\passport-facebook\lib\strategy.js:198:12) at Strategy.OAuth2Strategy._createOAuthError (D:_Projects\todo-list\node_modules\passport-oauth2\lib\strategy.js:420:16) at D:_Projects\todo-list\node_modules\passport-oauth2\lib\strategy.js:177:45 at D:_Projects\todo-list\node_modules\oauth\lib\oauth2.js:191:18 at passBackControl (D:_Projects\todo-list\node_modules\oauth\lib\oauth2.js:132:9) at IncomingMessage. (D:_Projects\todo-list\node_modules\oauth\lib\oauth2.js:157:7)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
What I had tried
Stackoverflow But since I use localhsot, so I left "Valid OAuth Redirect URIs" empty
Environment