{"id":3191,"date":"2014-03-19T12:16:53","date_gmt":"2014-03-19T12:16:53","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/19\/error-when-posting-to-a-facebook-page-as-the-page-collection-of-common-programming-errors-2\/"},"modified":"2014-03-19T12:16:53","modified_gmt":"2014-03-19T12:16:53","slug":"error-when-posting-to-a-facebook-page-as-the-page-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/19\/error-when-posting-to-a-facebook-page-as-the-page-collection-of-common-programming-errors-2\/","title":{"rendered":"Error when posting to a Facebook page as the page-Collection of common programming errors"},"content":{"rendered":"<p>I am getting an error when trying to post to a Facebook page, as the page.<\/p>\n<p>The page admin has granted Manage Pages permission to the app.<\/p>\n<p>I use the PHP SDK.<\/p>\n<p>I have the user extended token saved, and it is not expired, I already checked that, because when I run \/userID\/accounts, I get back all the pages this user manages, including each page access token.<\/p>\n<p>I then try to post to one of these pages, using the page access token I just obtained from \/userID\/accounts. It had been working before, but now when I try, I get a rather cryptic error that I can&#8217;t figure out:<\/p>\n<pre><code>FacebookApiException Object\n(\n    [result:protected] =&gt; Array\n        (\n            [error] =&gt; Array\n                (\n                    [message] =&gt; An unknown error has occurred.\n                    [type] =&gt; OAuthException\n                    [code] =&gt; 1\n                )\n\n        )\n\n    [message:protected] =&gt; An unknown error has occurred.\n    [string:Exception:private] =&gt; \n    [code:protected] =&gt; 0\n    [file:protected] =&gt; XXXXX\/src\/base_facebook.php\n    [line:protected] =&gt; 1106\n)\n<\/code><\/pre>\n<p>Thanks for any help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am getting an error when trying to post to a Facebook page, as the page. The page admin has granted Manage Pages permission to the app. I use the PHP SDK. I have the user extended token saved, and it is not expired, I already checked that, because when I run \/userID\/accounts, I get [&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-3191","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3191","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=3191"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3191\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}