facebook - FacebookTokenError: Error validating client secret -
i error when user attempts log in via facebook. application uses express.
facebooktokenerror: error validating client secret. @ strategy.parseerrorresponse (/pathtomyapp/node_modules/passport-facebook/lib/strategy.js:198:12) @ strategy.oauth2strategy._createoautherror (/pathtomyapp/node_modules/passport-facebook/node_modules/passport-oauth2/lib/strategy.js:345:16) @ /pathtomyapp/node_modules/passport-facebook/node_modules/passport-oauth2/lib/strategy.js:171:43 @ /pathtomyapp/node_modules/passport-facebook/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:177:18 @ passbackcontrol (/pathtomyapp/node_modules/passport-facebook/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:124:9) @ incomingmessage.<anonymous> (/pathtomyapp/node_modules/passport-facebook/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:143:7) @ incomingmessage.eventemitter.emit (events.js:117:20) @ _stream_readable.js:920:16 @ process._tickcallback (node.js:415:13) what causing this? how prepare it?
i ran same issue , pulling hair out on it. prepare simple. create sure clientid , clientsecret both valid (and different)! copying error in config file led both beingness same , got stack trace. if doesn't solve problem, can add together logging passport-facebook modules see more details.
facebook passport.js facebook-oauth passport-facebook
No comments:
Post a Comment