没有有关AppSecret Proof for Server API调用的文档? [英] No documentation about AppSecret Proof for Server API calls?

查看:118
本文介绍了没有有关AppSecret Proof for Server API调用的文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我启用了高级设置中提供的选项,则会给我 BAD请求或错误代码400

If I enable the option giving in Advanced Settings is gives me BAD Request or error code 400

如果启用此选项,AppSecret_Proof参数的必需值是什么?

If I enable this option, what is the required value of AppSecret_Proof parameter?

推荐答案

来自文档文章保护图形API请求


应用程序秘密证明是使用应用程序秘密作为密钥的访问令牌的sha256哈希。在PHP中的调用如下所示:

The app secret proof is a sha256 hash of your access token, using the app secret as the key. Here's what the call looks like in PHP:

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


这篇关于没有有关AppSecret Proof for Server API调用的文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆