facebook-php-sdkfacebook-oauthfacebook-authenticationfacebook-access-tokenapp-secret

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


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


Solution

  • 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.