title: Check if Facebook user exists using Javascript
body: <p>I'm looking for a way to check if there is a Facebook user with a particular ID.</p>
  
  <p>I know that there is an Graph API which can return Facebook user's profile picture for given ID, it works like this:
  <a href="https://graph.facebook.com/#USER_ID_HERE#/picture" rel="nofollow">https://graph.facebook.com/#USER_ID_HERE#/picture</a></p>
  
  <p>and I see that if I enter ID that doesn't exists it returns error, however I'm still very new to JavaScript so I don't really know how to "read" that error message.</p>