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
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 ;)