title: Facebook Graph API  - get ID for a URL?
body: <p>This seems like a pretty obvious, basic thing to expect from the <a href="http://en.wikipedia.org/wiki/Facebook_Platform#Graph_API" rel="noreferrer">Graph API</a>, but I'm having serious difficulty with it. All I want to do is get the ID for any particular URL. They have a method for this:</p>
  
  <pre><code>https://graph.facebook.com/?ids=http://www.imdb.com/title/tt0117500/
  </code></pre>
  
  <p>And that works great. But if I try another URL, say for my blog,</p>
  
  <pre><code>https://graph.facebook.com/?ids=http://dusda.vox.com
  </code></pre>
  
  <p>it doesn't give me back a numerical ID like all of the examples do. Instead, this:</p>
  
  <pre><code>{"http:\/\/dusda.vox.com":{"id":"http:\/\/dusda.vox.com"}}
  </code></pre>
  
  <p>If I try to use that "id", I get jack (probably because the query string looks impossible to parse):</p>
  
  <pre><code>Request: https://graph.facebook.com/http://dusda.vox.com/likes
  Response: {"id":"http:\/\/dusda.vox.com\/likes"}
  </code></pre>
  
  <p>So what's up with this? Is the Graph API just selectively reliable, or am I misunderstanding something? I've tried it on URLs that I <em>know</em> are popular on Facebook, too, and I've gotten mixed results.</p>