在此端点调用POST时出错。 https://api.instagram.com/oauth/authorize
这是请求正文:
{
"client_id": "62022....13674",
"client_secret": "081f5d8d8d0.....cfbe88d8df1bf1",
"grant_type": "authorization_code",
"redirect_uri": "https://mystifying-khorana-f72562.netlify.com/",
"code": "AQA6nvV5uJ1PEblnIy2lEx0e6IMc6rOAmnW0Rx6_nVHwQn1IYUp85hRd2rbB9K-BC0877g5Djhy9QjqqD-ImRFPwz0HJDgNEOwD4w5qltzNGYQyoFQd7ttyS9E1E61JdsFduGLXzTU2b8X8vICd_KaJDXeFL9drc8uickz3yy-UaziuKLbExqcMfeEubRcwVnPQFwyLQUnQgcljgXyvV5eeGADgVZYXvZ7Lb7REtyOXReA"
}
这是返回的错误:
{
"error_type": "OAuthException",
"code": 400,
"error_message": "Invalid platform app"
}
这可能很简单,但我无法弄清楚出了什么问题。我逐行遵循入门指南。https://developers.facebook.com/docs/instagram-basic-display-api/getting-started
您正在POST
使用错误的URL。您需要将该请求发送到:https://api.instagram.com/oauth/access_token
以将代码交换为访问令牌。