Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

instagram api OAuthPermissionsException live mode

I'm having an issues with the new API policy of Instagram I already got my app approved and got basic permissions

IG API Permissions

When using the app on sandbox mode I can get API response only for my own user, however when I move to Live Mode and try using the API all I receive is error 400 code

For example https://api.instagram.com/v1/users/search?access_token=MY-TOKEN&count=6&q=world

Response

{
  meta: {
    error_type: "OAuthPermissionsException",
    code: 400,
    error_message: "This client has not been approved to access this resource."
  }
}

Even using the same API with my own username still getting the same error

I was trying to search on it but all I can find is the same error happens to unauthorized users

Any idea ?

like image 372
beautyfit Avatar asked Jun 04 '16 06:06

beautyfit


1 Answers

I have fixed the This client has not been approved to access this resource Issue by Authorizing the Instagram public_content scope by visiting the following URL and clicking Authorize.

https://api.instagram.com/oauth/authorize/?client_id=[YOUR_CLIENT_ID]&redirect_uri=[YOUR_REDIRECT_URI]&scope=public_content&response_type=token
like image 101
Surjith S M Avatar answered Nov 12 '22 20:11

Surjith S M