title: Facebook count using ajax
body: <p>I have a problem with getting number of shares of my custom url. Im trying this code:</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: "http://graph.facebook.com/https://www.myurl.com/somelink/?callback=?",
      processData: true,
      contentType: 'application/json',
      success: function(r){
        var fbjson = JSON.stringify(r);
        console.log(fbjson);
      }
    });
  </code></pre>
  
  <p>I've tried also:</p>
  
  <pre><code>$.getJSON('http://graph.facebook.com/https://www.myurl.com/somelink/?cal‌​lback=?'), function (data) {
  
  fbjson = JSON.stringify(fbjson);
  
  console.log(fbjson);
  
  
   };
  </code></pre>
  
  <p>When I paste url into browser I recieving JSON with all needed information, but when I am using <code>$.ajax</code> etc. I am recieving totaly different json or some error that I should use <code>XMLHttpRequest</code> or some other serwer status information. Important knowladge may be that I am using <code>https://</code>.</p>
  
  <p>Anyone know how to correctly get FB share count for custom URL ?</p>
  
  <p>PS Be understanding for me, this are my first steps in JS, thanks :)</p>