Error validating client secret

Facebook Token Error: Error validating client secret.at Strategy.parse Error Response (/pathtomyapp/node_modules/passport-facebook/lib/strategy.js:1) at Strategy.POST https://login.microsoftonline.com/common/oauth2/v2.0/token HTTP/1.1 Host: login.Connection: keep-alive Content-Length: 256 Postman-Token: 701972e4-1b73-bc44-5772-e12509a08560 Cache-Control: no-cache Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) Apple Web Kit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Content-Type: application/x-www-form-urlencoded Accept: */* Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.8 Cookie: buid=AQABAAEAAABnfi G-m A6NTae7Cd WW7Qfdi7qp7YRGffcs Rz Rj4OC3s U_p2cd95juzw_AQz A0k3a ZAay UYp9UIQllpk0CRUYOIcq Gn Lf B3ly TOXbz37m Cv4za1-mqs16d AFJ3u N2HVq3Eg AA; esctx=AQABAAAAAABnfi G-m A6NTae7Cd WW7Qfd Kvh YJg BPnz SPM31nmu7Nmmytyt PHv Wu Ywy0ATao854n FQA9Mj C_GFt C--z7sm Iy ZYOEcpb Qtpt23YGsiw Wo Wxdema Bu W8h62s-FVGWi Jh-zc S1IAWYde FM0Nt QARmxz Qar4bf-2K14wkrz Fj V_METJ4TNUbd TT9j Ahm Qv3y Ai RIg AA; x-ms-gateway-slice=006; stsservicecookie=ests client_id=6731de76-14a6-49ae-97bc-6eba6914391e&scope=https://graph.microsoft.com/mail.read&redirect_uri= QX2PNo9bp M0u Eih UPzyrh&code=M9c8d976a-d41d-9ac7-9df3-2a510ef684eb POST https://login.microsoftonline.com/common/oauth2/v2.0/token HTTP/1.1 Host: login.Connection: keep-alive Content-Length: 273 Postman-Token: e33ac4d8-7f19-eb1c-ff93-d5e39091042c Cache-Control: no-cache Origin: chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) Apple Web Kit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Content-Type: application/x-www-form-urlencoded Accept: */* Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.8 Cookie: buid=AQABAAEAAABnfi G-m A6NTae7Cd WW7Qfdi7qp7YRGffcs Rz Rj4OC3s U_p2cd95juzw_AQz A0k3a ZAay UYp9UIQllpk0CRUYOIcq Gn Lf B3ly TOXbz37m Cv4za1-mqs16d AFJ3u N2HVq3Eg AA; esctx=AQABAAAAAABnfi G-m A6NTae7Cd WW7Qfd Kvh YJg BPnz SPM31nmu7Nmmytyt PHv Wu Ywy0ATao854n FQA9Mj C_GFt C--z7sm Iy ZYOEcpb Qtpt23YGsiw Wo Wxdema Bu W8h62s-FVGWi Jh-zc S1IAWYde FM0Nt QARmxz Qar4bf-2K14wkrz Fj V_METJ4TNUbd TT9j Ahm Qv3y Ai RIg AA; x-ms-gateway-slice=006; stsservicecookie=ests client_id=a0025dcc-07a0-4c57-ba0c-2ff00d77d283&scope=https://graph.microsoft.com/mail.read&redirect_uri= Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.

Zo ja, hoe reset je dan de access token of hoe vraag je een nieuwe access token aan? Om te bepalen of de fout nu wel of niet in mijn code zit volgt hier mijn (deels gecensureerde) PHP code: PHP: De secret heb je wel degelijk nodig.A copying error in my config file led to both being the same and I got your stack trace.If that doesn't solve the problem, you can add logging into the passport-facebook modules to see more details.Now at step 3, I kept on getting Http 400 response back. So after some research, I found out that on that redirect_uri that we submitted on step 3 doesn't do anything but validate the request.