{"id":1443,"date":"2022-08-30T15:16:34","date_gmt":"2022-08-30T15:16:34","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/19\/exceptions-in-php-sdk-facebook-using-fql-error-100-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:16:34","modified_gmt":"2022-08-30T15:16:34","slug":"exceptions-in-php-sdk-facebook-using-fql-error-100-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/exceptions-in-php-sdk-facebook-using-fql-error-100-collection-of-common-programming-errors\/","title":{"rendered":"Exceptions in php sdk facebook using FQL (error 100)-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to use FQL in facebook php sdk.<\/p>\n<p>This is my code:<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>But I am getting an exception each time I run the script. I know that my appId and my secret are fine because I can use them for getting normal queries (not fql).<\/p>\n<p>If I try to quit the try\/catch, I got an exception message in browser:<\/p>\n<pre><code>Fatal error: Uncaught Exception: 100: Requires user session thrown in     C:\\xampp\\htdocs\\prueba\\base_facebook.php on line 1271\n<\/code><\/pre>\n<p>Do I need to use another param or command while executing fql? I have seen many answer about this and always use the same as I am doing, so I don&#8217;t know where the error is.<\/p>\n<p>EDIT: If I use getResult instead for exception, I get this:<\/p>\n<pre><code>Notice: Array to string conversion in C:\\xampp\\htdocs\\prueba\\pru2.php on line 26\nGot an Array while posting\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-11-19 13:16:33. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am trying to use FQL in facebook php sdk. This is my code: But I am getting an exception each time I run the script. I know that my appId and my secret are fine because I can use them for getting normal queries (not fql). If I try to quit the try\/catch, I [&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-1443","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1443","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=1443"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1443\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}