title: Facebook Graph API - Get post_id for posted photo
body: <p>Is there a way to get the <strong>post_id</strong> for the resulting post on the wall / feed (e.g. 987654321_123456789) after publishing a photo to <code>/photos</code> instead of the photo <strong>object_id</strong> (e.g. 334455667788)?</p>
  
  <p>When we call the <code>https://graph.facebook.com/page_id/photos</code> recource to <strong>publish a photo</strong>, the returned ID (JSON response) will be the <strong>object_id</strong> of the photo </p>
  
  <p>The only way I could think of was to get the entire feed since posting the picture (in case someone else made a post in between) and then getting the post_id for the post that has the object_id == photo_id. That seems a little crude though..</p>
  
  <p>"A way" means it could be FQL (fql=Select...), a search query(search?q=...) or any basic graph resource that I haven't thought of that will provide the exact information.</p>
  
  <p>(We're using Jersey and Jackson to interact with the Facebook Graph API.)</p>
  
  <p>Thanks!</p>