Instagram oauth api gives { “code”: 400, “error_type”: “OAuthException”, “error_message”: “No matching code found.” }

前端 未结 7 1519
孤独总比滥情好
孤独总比滥情好 2020-12-25 11:52

I am working on an application that integrates with Instagram API to access the user information. I successfully fetch the Access Token using the authorize url but unable to

7条回答
  •  时光取名叫无心
    2020-12-25 12:30

    I found that using either form-data or application/x-www-form-urlencoded works fine. The most important is the code you get from redirect uri is only used by one request. It means you could request the access token once for the code. If the you request more than one time with same code, you'll get the error like this:

    {
        code: 400,
        error_type: "OAuthException",
        error_message: "Matching code was not found or was already used."
    }
    

    Wish you all the best ;)

提交回复
热议问题