Instagram API responds with code 400 (Bad Request)
api, instagram
Solution
The problem is that you are not sending the action as postdata. I had the exact problem just yesterday.
The access_token should be sent in the url, but the action=follow should be in the postdata of the request!
Problem
I've sent this URL via post: ``` https://api.instagram.com/v1/users/XXX/relationship?action=unfollow&access_token=YYY ``` XXX is a valid userid, I've checked that multiple times. The token (YYY) is correct too. This is the response: ``` {"meta":{"error_type":"APIInvalidParametersError","code":400,"error_message":"please supply action=approve,ignore,follow,block,unblock,unfollow"}} ``` I've tried action=follow and action=unfollow. Is it possible, that this is a bug? Where can I report it? Instagram API Documentation: http://instagram.com/developer/endpoints/relationships/