title: How to delete instagram like using getjson post method?
body: <p>I am trying to delete instagram like . I have valid access token and have the media id of instagram image. I want to use whateverorigin.org so that i dont get cross domain error. when i run the code beleow i dont get any error and even when i press f12 i dont see any error in console!could any one tell me how to fix this getjson?  </p>
  
  <p>note:I am looking for non php solution !</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;
      function delete() {
  
  
  
      var url="https://api.instagram.com/v1/media/xxxxxxxxxxxxxxxxxx_xxxxxxxxxx/likes?access_token=xxxxxxxxxxxx"
      $.ajaxSetup({
          method: "post"
          scriptCharset: "utf-8", //maybe "ISO-8859-1"
          contentType: "application/json; charset=utf-8"
  
      });
  
      $.getJSON('http://whateverorigin.org/get?url=' + 
  
          encodeURIComponent(url) + '&amp;callback=?',
          function(data) {
  
      });
      }
      &lt;/script&gt;
  
      &lt;button onclick="delete()"&gt;delete&lt;/button&gt;
  </code></pre>