2015-07-19 159 views

回答

0

根據Instagram API文檔(https://instagram.com/developer/endpoints/likes/#post_likes),成功響應的JSON響應應如下所示。

{ 
    "meta": { 
     "code": 200 
    }, 
    "data": null 
} 

它看起來並不像是有任何數據返回。但是,您可以像這樣使用內置的AJAX Success回調。

$.ajax({ 
    type: 'POST', 
    url: 'your url here', 
    data: 'your data here in the form of an object', 
    //The success function will operate if the server compeletes is task, 
    //or in this case, if the post is liked 
    success: function(){ 

    } 
}); 
+0

有什麼建議嗎? – Ali