{"id":6781,"date":"2014-04-23T04:01:42","date_gmt":"2014-04-23T04:01:42","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/getting-an-error-with-facebook-php-sdk-fatal-error-class-basefacebook-not-found-on-line-25-collection-of-common-programming-errors\/"},"modified":"2014-04-23T04:01:42","modified_gmt":"2014-04-23T04:01:42","slug":"getting-an-error-with-facebook-php-sdk-fatal-error-class-basefacebook-not-found-on-line-25-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/getting-an-error-with-facebook-php-sdk-fatal-error-class-basefacebook-not-found-on-line-25-collection-of-common-programming-errors\/","title":{"rendered":"Getting an error with Facebook PHP SDK -&gt; Fatal error: Class &#39;BaseFacebook&#39; not found on line 25-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m getting an error when trying to use Facebook&#8217;s PHP SDK to develop a like-gating app. I&#8217;ve included facebook.php as advised but it still doesn&#8217;t work. Here&#8217;s my source code (index.php) calling the SDK, and the only error that I get:<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>Fatal error: Class &#8216;BaseFacebook&#8217; not found in \/var\/www\/xxxxx\/users\/xxxxx\/countdown\/fangate\/facebook.php on line 25<\/p>\n<p>Is there anything wrong in my source code? I&#8217;ve been trying to solve this issue for days now&#8230; Thanks a lot in advance for the help!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m getting an error when trying to use Facebook&#8217;s PHP SDK to develop a like-gating app. I&#8217;ve included facebook.php as advised but it still doesn&#8217;t work. Here&#8217;s my source code (index.php) calling the SDK, and the only error that I get: Fatal error: Class &#8216;BaseFacebook&#8217; not found in \/var\/www\/xxxxx\/users\/xxxxx\/countdown\/fangate\/facebook.php on line 25 Is there anything [&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-6781","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6781","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=6781"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6781\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}