Skip to content

Instantly share code, notes, and snippets.

@zaur
Created July 6, 2015 11:08
Show Gist options
  • Save zaur/e9bf43206a71728a73bf to your computer and use it in GitHub Desktop.
Save zaur/e9bf43206a71728a73bf to your computer and use it in GitHub Desktop.
instagram json errors
{"meta":{"error_type":"OAuthException","code":400,"error_message":"The access_token provided is invalid."}} - invalid token, i.e. user revoked access for brndstr app
{"meta":{"error_type":"OAuthParameterException","code":400,"error_message":"The access_token provided is invalid."}}
{"meta":{"code": 400, "error_type": "APICommentTooLongError", "error_message": "Your comment is too long."}} - comment too long
{"meta":{"error_type":"APINotAllowedError","code":400,"error_message":"you cannot view this resource"}} - privacy
{"meta":{"error_type":"APIInvalidParametersError","code":400,"error_message":"please supply action=approve,ignore,follow,block,unblock,unfollow"}} - sending params via GET instead of POST
{"meta":{"error_type":"APISubscriptionError","code":400,"error_message":"Invalid response"}} - don't know
{"meta":{"error_type":"APIError","code":400,"error_message":"Client request limit reached"}}
/**
* don't know why it happens - from docs: 'However, sometimes things go wrong, and in that case you might see a response like:'
* https://instagram.com/developer/endpoints/
*/
public static final String TYPE_OAUTH = "OAuthException";
/**
* Expired token, revoked access for Brndstr app, etc
*/
public static final String TYPE_OAUTH_PARAM = "OAuthParameterException";
public static final String TYPE_OAUTH_ACCESS_TOKEN = "OAuthAccessTokenException";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment