{"id":6783,"date":"2014-04-23T04:01:52","date_gmt":"2014-04-23T04:01:52","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/php-facebook-class-how-top-block-fatal-errors-collection-of-common-programming-errors\/"},"modified":"2014-04-23T04:01:52","modified_gmt":"2014-04-23T04:01:52","slug":"php-facebook-class-how-top-block-fatal-errors-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/php-facebook-class-how-top-block-fatal-errors-collection-of-common-programming-errors\/","title":{"rendered":"PHP Facebook Class: how top block fatal errors?-Collection of common programming errors"},"content":{"rendered":"<p>I am using FB Connect and the PHP class called Facebook, that is provided by FB. Whenever something goes wrong FB throws Fatal Error and application dies. That&#8217;s great for testing but now very nice for production code. I&#8217;ve looked through code and can&#8217;t find a way to disable that but may be I overlooked something. So, is there any way to disable fatal errors other than looking through their class and removing every line like this<\/p>\n<pre><code>throw new FacebookApiException($result);\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I am using FB Connect and the PHP class called Facebook, that is provided by FB. Whenever something goes wrong FB throws Fatal Error and application dies. That&#8217;s great for testing but now very nice for production code. I&#8217;ve looked through code and can&#8217;t find a way to disable that but may be I overlooked [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6783","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6783"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6783\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}