'cannot get Instagram user data with access taken in java script

I'm trying to get Instagram login user data with the access token in my javascript code. I'm getting only some basic information like

Here is Postman response: enter image description here

I want to show users other's information like feed, publish post followers list, etc.

when I'm trying to pass some more fields in a request like that :

[
  {
    "key": "fields",
    "value": "id,username,media_count,account_type,media_type",
    "equals": true,
    "description": "",
    "enabled": true
  }
]

I'm getting this error

{
  "error": {
    "message": "Tried accessing nonexisting field (media_type) on node type (User)",
    "type": "IGApiException",
    "code": 100,
    "fbtrace_id": "AC1FVzTJh3LgGD62qtH0fGo"
  }
}

also, my Instagram app is consumer type and I'm testing with a tester account.

If anyone has an idea please let me know.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source