I am using Ionic Cloud to login with Instagram,
this.auth.login('instagram').then(result: {signup: boolean, token: string} => { });
But when I call the API with access_token parameter being the token I received from the login (or this.auth.getToken()) I get a 400 error.
Endpoint: https://api.instagram.com/v1/users/{USER_ID}/media/recent/?access_token={ACCESS_TOKEN}
Error thrown:
{
"meta": {
"error_type": "OAuthAccessTokenException",
"code": 400,
"error_message": "The access_token provided is invalid."
}
}
How can i get real instagram access_token value with ionic service?