{"id":6795,"date":"2014-04-23T08:06:34","date_gmt":"2014-04-23T08:06:34","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/facebook-php-example-fatal-error-collection-of-common-programming-errors\/"},"modified":"2014-04-23T08:06:34","modified_gmt":"2014-04-23T08:06:34","slug":"facebook-php-example-fatal-error-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/facebook-php-example-fatal-error-collection-of-common-programming-errors\/","title":{"rendered":"Facebook php example: Fatal error-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to make a php facebook app. Downloaded the Facebook php sdk and used the example.php (with my own appId and secret) to try to get a example app running. I can use the example app, but when I click login with facebook and and authenticate the app it throws this exception:<\/p>\n<p>&#8220;Fatal error: Uncaught GraphMethodException: Unsupported get request. thrown in \/var\/www\/facebook_test\/base_facebook.php on line 1264&#8221;<\/p>\n<p>Below is the code I am using.<\/p>\n<p>Any guidance would be greatly appreciated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am trying to make a php facebook app. Downloaded the Facebook php sdk and used the example.php (with my own appId and secret) to try to get a example app running. I can use the example app, but when I click login with facebook and and authenticate the app it throws this exception: &#8220;Fatal [&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-6795","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6795","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=6795"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6795\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}