nerdsfornature / changebrackets

This is a public repo for our project that uses angle brackets to monitor environmental change
MIT License
5 stars 4 forks source link

Instagram error 400: The access_token provided is invalid. #8

Open jasper2xF opened 8 years ago

jasper2xF commented 8 years ago

I'm getting an invalid access token error when trying to use the Instagram code for collecting images in fireslurp.rb.

Instagram request failed: GET https://api.instagram.com/v1/tags/morganfire01/media/recent.json?client_id=*****: 400: The access_token provided is invalid.

Indeed the code does not use an access_token, but only a client id. Does that still work for somebody else?

This might also be an issue of scope permissions. The tag_recent_media method seems to require "Scope: public_domain", get recent media decription.

App authentication created after Nov 17, 2015 is sand-boxed and needs to be reviewed before public_domain scope can be requested. Apps from before that will likely need review as well after June 2016:

Instagram Platform and documentation update. Apps created on or after Nov 17, 2015 will start in >Sandbox Mode and function on newly updated API rate-limits and behaviors. Prior to going Live, and >being able to be used by people other than the developers of the app, these apps will have to go >through a new review process. Please read the API documentation or the Change Log for more >details.

Any app created before Nov 17, 2015 will continue to function until June 2016. After June 2016, the >app will automatically be moved to Sandbox Mode if it wasn't approved through the review process. >The previous version of our documentation is stil available here. source