"The request is invalid because the app secret is the same as the client token" error when trying to get an access token
T

3

5

I was using facebook php sdk without any problem to provide facebook login on my website. Since a few days, I'm unable to log in anymore. I follow the steps described on https://developers.facebook.com/docs/howtos/login/server-side-login/ but at step 6 it fails with the following response :

{
  error: {
    message: "The request is invalid because the app secret is the same as the client token",
    type: "OAuthException",
    code: 1
  }
}

I don't understand why it stopped working. Have you ever had the same problem ?

Thanks

Thomsen answered 4/4, 2013 at 11:39 Comment(0)
B
6

I just encountered this problem and I fixed it by resetting my client token (Advanced > Security on the Facebook App settings page) and changing my app type from Native / Desktop to Web app.

Beefeater answered 5/4, 2013 at 8:0 Comment(1)
The problem is that the token is also used on an iPhone app, so resetting the token would break the iPhone app :(Thomsen
S
1

Change the app type from native to web app (Advanced -> App Authentication). Current solution says to reset the client token which was not necessary for me.

Silicium answered 25/8, 2021 at 13:49 Comment(0)
G
0

For me, neither of the solutions above worked. However, simply by resetting my secret it started working.

Gerhard answered 22/11, 2021 at 23:7 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.