pradel / node-instagram

Instagram api client for node that support promises.
MIT License
190 stars 27 forks source link

"error_type": "OAuthAccessTokenException", "error_message": "The access_token provided is invalid" #307

Open RustamDR opened 4 years ago

RustamDR commented 4 years ago

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.

Neisser commented 3 years ago

It won't work becasuse it is deprecated

mylastore commented 3 years ago

so does this package works with the new instagram API?

mdhishaamakhtar commented 3 years ago

so does this package works with the new instagram API?

I dont think so