title: Uncaught OAuthException: An unknown error has occurred with Facebook PHP API
body: <p>I have this small script that gets the albums from a page. 
  This was working fine until today I started getting this wierd error:</p>
  
  <p><strong>Uncaught OAuthException: An unknown error has occurred.\n thrown in .../base_facebook.php on line 1254</strong></p>
  
  <p>I checked other questions related to this and everyone seems to have this for different reasons. This was working fine for months and I never touched it. I also checked the App ID and Secret in case they expired or something, but the ones on the Facebook App page are still the same.</p>
  
  <p>What could have happened to suddenly cause this?</p>
  
  <p>I did some more debugging and the problem is occurring in the <code>_graph()</code> function getting this result from Facebook:</p>
  
  <pre><code>[13-Mar-2014 01:22:46 UTC] array (
    'error' =&gt; 
    array (
      'message' =&gt; 'An unknown error has occurred.',
      'type' =&gt; 'OAuthException',
      'code' =&gt; 1,
    ),
  )
  </code></pre>
  
  <p>I checked the Facebook developer site here: <a href="https://developers.facebook.com/docs/graph-api/using-graph-api/#errors" rel="noreferrer">https://developers.facebook.com/docs/graph-api/using-graph-api/#errors</a> and Error code 1 is just described as:</p>
  
  <p><em>Possibly a temporary issue due to downtime - retry the operation after waiting, if it occurs again, check you are requesting an existing API.</em></p>
  
  <p>I've been having the problem all day long though! I don't think it is a temporary issue.</p>