PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, December 28, 2021

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

 December 28, 2021     app-secret, facebook-access-token, facebook-authentication, facebook-oauth, facebook-php-sdk     No comments   

Issue

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.



Answered By - isyi
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing