0

i am trying to delete a like from instagram using ajax jsonp (using callback) without using any php.i use the same code for other instagram apis it works but for some reason i dont get any response back from this api call and the like is not getting deleted. could any one help me fix this problem?

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
    <script>
    function callApi2(){
    $.ajax({
            type: "POST",
            dataType: "jsonp",
            cache: false,
            url: "https://api.instagram.com/v1/media/xxxxxx/likes?access_token=xxxxx&callback=function",
            success: function(data) {

                alert("response:"+data);

            }
        });

    }
    </script>



    <button onclick="callApi2()">Try it</button>
4

0 回答 0