title: Get Facebook ID For URL
body: <p>I'm wondering how to retrieve the information that the Open Graph Debugger shows when you enter a URL. </p>
  
  <p>Here's an example: I have a page that has all the right og meta tags, the top looks like this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/" /&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;meta property="og:url" content="http://www.freefunder.com/campaign/Short-Film-Revenge-Inc/" /&gt;
  &lt;meta property="og:type" content="Website" /&gt;
  &lt;meta property="og:title" content="Short Film: &amp;quot;Revenge, Inc.&amp;quot;" /&gt;
  &lt;meta property="og:description" content="&amp;quot;Revenge, Inc.&amp;quot; is the first short film for the Karmalicity Movie Project. A feel-good story with a positive message." /&gt;
  &lt;meta property="og:image" content="http://www.freefunder.com/images/campaigns/2094_main.jpg" /&gt;
  &lt;meta property="fb:app_id" content="346433602097524" /&gt;
  </code></pre>
  
  <p>When I look it up in the Open Graph Debugger, it gives me Code 206 and no errors, and at the bottom it will give me the URL to look this up with the Graph API, which is: <a href="https://graph.facebook.com/103335396527655" rel="nofollow">https://graph.facebook.com/103335396527655</a></p>
  
  <p>The problem I'm having is I need to be able to determine the Facebook ID (103335396527655) within my code, and not need to go to the debugger every time. If I go to:</p>
  
  <p><a href="http://graph.facebook.com/?ids=http://www.freefunder.com/campaign/Short-Film-Revenge-Inc/" rel="nofollow">http://graph.facebook.com/?ids=http://www.freefunder.com/campaign/Short-Film-Revenge-Inc/</a></p>
  
  <p>It doesn't return the same information (and doesn't include the ID) as if I go to the Graph API URL provided by the debugger.</p>
  
  <p>Is there any way, given a specific URL, to look up the right Facebook ID for it? This could be with the Graph API, FQL, the PHP SDK, whatever! I just need to be able to enter a URL and get the Facebook ID for it..</p>
  
  <p>Thanks!</p>