Instagram 登录错误:客户端密钥无效



如果我尝试使用 API 登录 Instagram,

法典:

$ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $apiHost);
    curl_setopt($ch, CURLOPT_POST, count($apiData));
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($apiData));
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $jsonData = curl_exec($ch);
    curl_close($ch);

错误:

{
error_type: "OAuthException",
code: 400,
error_message: "Invalid Client Secret"
} 

有人知道吗?

如评论中所述:检查复制时是否有空格。

但是就我而言,删除空格仍然没有解决错误。相反,我尝试直接编写它,这似乎可以解决问题。

最新更新