Instagram API throwing OAuthAccessTokenException 400 error using client id -
i using following api latest 3 posts public accounts show on website:
https://api.instagram.com/v1/users/{user-id}/media/recent/?client_id={client-id}&count=3
i had created app client-id.
today, api has started throwing following exception:
{ meta: { error_type: "oauthaccesstokenexception", code: 400, error_message: "the access_token provided invalid." } }
could please let me know how resolve this?
based on date, have older app got hit api migration today, mine. in short, instagram decided make developing platform way more annoying requiring api requests authenticated per user, data users shares publicly. (like me) redesigning app entirely.
to tell, log in instagram.com/developer , click manage clients; hit edit next set of keys your're trying use. near top, have section called 'client status' -- if yours reads 'sandbox mode', fun times ahead! interact less 10 users , can stay in sandbox mode, otherwise you'll have write essay, film video, , plead permissions (probably in few months, when instagram intern digs way down in pile of applications). if reads eles, you've got problem altogether , should thank lucky stars.
in meantime, guess i'll sending out dozens of emails maintainers of our many, many affiliated instagram accounts explain issue , try permissions, provided approved then, our social media displays aren't broken during huge event saturday. option might use oauth-less json response available here, might break terms of service.