Answer the question
In order to leave comments, you need to log in
Why doesn't the Instagram API like a photo?
While writing a JS application for Windows 8 (Instagram client) I encountered a strange problem in the interaction of my application with the Instagram API. Everything loads fine except for one weird problem: the Instagram API doesn't like the photo.
Here is the JS function code:
var LikeImage = function(id){
$.ajax({
type: "POST",
dataType: "jsonp",
data: ({access_token:token}),
cache: false,
url: "https://api.instagram.com/v1/media/"+id+"/likes",
success: function(data){
return true;
},
fail: function(){
return false;
}
});
};
Answer the question
In order to leave comments, you need to log in
Magic magic! If you do it not through JS, but through PHP - everything works!
Why doesn't he want to use JavaScript?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question