A new api has appeared in Instagram graph.instagram.com. Current workflow in the library gives correct user code and access_token, but with scope: ["user_profile","user_media"].
But old request throws error:
instagram.get("users/self/media/recent")
{"meta": {"code": 400, "error_type": "OAuthAccessTokenException", "error_message": "The access_token provided is invalid."}}
It would be nice to switch between base urls or rework private Instagram properties as protected to control api base url in extended class.
A new api has appeared in Instagram graph.instagram.com. Current workflow in the library gives correct user code and access_token, but with scope: ["user_profile","user_media"].
Obtained access_token works fine with new api (responds with user`s media content): https://graph.instagram.com/me/media?fields=id,media_url&access_token=....
But old request throws error: instagram.get("users/self/media/recent") {"meta": {"code": 400, "error_type": "OAuthAccessTokenException", "error_message": "The access_token provided is invalid."}}
It would be nice to switch between base urls or rework private Instagram properties as protected to control api base url in extended class.