title: Fetching Facebook API objects from their public URL
body: <p>I'm helping out building an indexer for Facebook posts/photos/notes/etc.</p>
  
  <p>The idea is that given a public Facebook URL, I can fetch their information using Facebook API. This has mostly worked for a lot of URL patterns, but some seem really hard to figure out if it's even possible. They are:</p>
  
  <ul>
  <li>Albums with set param: <a href="https://www.facebook.com/alexsander.lepletier/media_set?set=a.10151933894649198.1073741851.531549197" rel="nofollow">https://www.facebook.com/alexsander.lepletier/media_set?set=a.10151933894649198.1073741851.531549197</a></li>
  <li>A photo in an album: <a href="https://www.facebook.com/photo.php?fbid=10151256245188625&amp;set=a.10151256241688625.559837.838813624" rel="nofollow">https://www.facebook.com/photo.php?fbid=10151256245188625&amp;set=a.10151256241688625.559837.838813624</a></li>
  <li>A photo in an album with a slightly different URL pattern: <a href="https://www.facebook.com/photo.php?fbid=10151256245188625&amp;set=t.100002233344951" rel="nofollow">https://www.facebook.com/photo.php?fbid=10151256245188625&amp;set=t.100002233344951</a></li>
  </ul>
  
  <p>It looks like I have some <code>a.xxx</code> and <code>t.xxx</code> album ID that is not directly usable in the Graph API Explorer.</p>
  
  <p>How to, based I have these URLs at hand, can I use these IDs with the Facebook Graph API, or how to  convert these to something Facebook Graph API recognizes?</p>