【问题标题】:OAuthException using Instagram Display API使用 Instagram 显示 API 的 OAuthException
【发布时间】:2020-05-31 17:45:45
【问题描述】:

在此 endoint 调用 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

【问题讨论】:

    标签: rest https instagram instagram-api instagram-graph-api


    【解决方案1】:

    POST正在访问错误的 URL。您需要将该请求发送至:https://api.instagram.com/oauth/access_token 以交换访问令牌的代码。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-08-31
    • 1970-01-01
    • 2020-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多