title: How to trace the cause of a 500 internal server error?
body: <p>I'm trying to do the following using FB's official PHP SDK:</p>
  
  <pre><code>$facebook-&gt;api(
  '/me/feed',
  'POST',
  array(
      'link' =&gt; 'test',
      'message' =&gt; 'test'
  )
  </code></pre>
  
  <p>)</p>
  
  <p>Unfortunately, the server (not facebook!) returns a 500 error.</p>
  
  <p>The request goes through, the status gets posted, but my server returns an error.</p>
  
  <p>My question is, how do I find out what's the cause of it?</p>