why do I get “Invalid appsecret_proof provided in the API argument”

前端 未结 13 1321
无人共我
无人共我 2020-12-16 09:24

Since the latest change on Facebook, regarding the appsecret_proof: https://developers.facebook.com/docs/reference/api/securing-graph-api/, we are still unable to download p

相关标签:
13条回答
  • 2020-12-16 09:26

    This error is the result of setting incorrect access token. For e.g posting to page album using a user's(admin's) access token. I have solved this error almost all the times by setting the proper access token

    0 讨论(0)
  • 2020-12-16 09:29

    This is error is because of in correct token. It may be because you are using different account for configuring web app and mobile app for Facebook configuration. Both accounts should be same.

    The app ID must be the same for your mobile app and your web app.

    0 讨论(0)
  • 2020-12-16 09:30

    Just for people having the same problem;

    When you set Client OAuth Login to "yes" on facebook, you should give proper Valid OAuth redirect URIs . Otherwise facebook throws exactly the same error.

    0 讨论(0)
  • 2020-12-16 09:34

    make sure your setting correct fbappid + fbappsecret

    this error happens when those are not set correct

    like you have 2 apps one development and one production

    and you mess up the codes, double check those two

    0 讨论(0)
  • 2020-12-16 09:35

    Works for me:

    $appsecret_proof = hash_hmac('sha256', $facebook_page_token, $app_secret);
    

    WHERE facebook_page_token is the page token stored in my database created when I associate the page to the app.

    0 讨论(0)
  • 2020-12-16 09:36

    Perhaps something wrong with your access token, you need Business Manager style. You can get the token from the content of https://business.facebook.com/settings/system-users/{sys_user_id}?business_id={business_id} with regex r'"accessToken":"([\d|\w]+)","context"'

    0 讨论(0)
提交回复
热议问题