Instagram 基本显示 API 连接错误

Instagram Basic Display API connection error

我正在尝试构建一个简单的应用程序来获取用户最新的 Instagram 帖子。我已遵循所有 Facebook 'Get Started' 指南,并使用以下 URL 连接到 Instagram 授权 window: “https://api.instagram.com/oauth/authorize?client_id={MY CLIENT ID INSERTED HERE}&redirect_uri=https://localhost:3000/handleAuth&scope=user_profile,user_media&response_type=code

无论我做什么,我能从 Instagram 得到的唯一回应是:

{"error_type": "OAuthException", "code": 400, "error_message": "You must include a valid client_id, response_type, and redirect_uri parameters"}

有人遇到过这个问题吗?知道我做错了什么吗?

事实证明,使用 url 作为授权 Window 作为表单操作 url 由于某种原因不起作用。我已经切换到一个使用 window.location.href = (authorization window URL) 的函数,现在可以使用了。