Answer the question
In order to leave comments, you need to log in
What does X-Insta-Forwarded-For is required for this operation mean?
Trying my hand at writing apps for Instagram. While testing the Instagram API console through Apigee , I tried to subscribe / unsubscribe from a random user - everything works. I tried to substitute the access_token received through my application, but as a result, Instagram gave a 403 error:
{
"code": 403,
"error_type": "OAuthForbiddenException",
"error_message": "Invalid header: X-Insta-Forwarded-For is required for this operation"
}
Answer the question
In order to leave comments, you need to log in
You need to set the X-Insta-Forwarded-For header field with the value [IP information]|[Signature]
More details here: instagram.com/developer/restrict-api-requests in the Enforce Signed Header section
The 'X-' prefix means an extension (eXtension) of the standard set of header fields. 'Insta' is an application that adds a title, most likely instagram. 'Forwarded-For' - usually used by all proxies that pass in this field the real IP of the client who requested the page through them.
That is, this procedure requires setting the 'X-Insta-Forwarded-For' field in the request header with a value, most likely, equal to IP.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question