{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}
我已经拥有客户端id和机密id
当您向Instragram注册以获取OAuth client_id和client_secret OAuth时,您将注册身份验证后要重定向到的URL。这与您正在使用的URL(localhost(不匹配。
可能你需要
(a( 更新您的instagram注册,或(b( 你正在使用别人的秘密代币,所以注册你自己的
更多信息:https://instagram.com/developer/authentication/?hl=enhttps://instagram.com/developer/register/
您的重定向URL必须是绝对URL,即类似的东西
http://localhost/callback.php
然后从该页面本身进行身份验证调用,即callback.php,否则它将不允许您获取访问令牌,以及在redirect_URL文件