{"id":6422,"date":"2014-04-17T21:25:13","date_gmt":"2014-04-17T21:25:13","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/17\/chrome-browser-facebook-api-error-code-191-when-invoking-requests-dialog-collection-of-common-programming-errors\/"},"modified":"2014-04-17T21:25:13","modified_gmt":"2014-04-17T21:25:13","slug":"chrome-browser-facebook-api-error-code-191-when-invoking-requests-dialog-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/17\/chrome-browser-facebook-api-error-code-191-when-invoking-requests-dialog-collection-of-common-programming-errors\/","title":{"rendered":"Chrome browser: Facebook API Error Code: 191 when invoking Requests dialog-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m writing a Facebook canvas application that is using a basic Requests dialog. The dialog works fine when I call it from index.php, but I get Error 191 when I call the same code from any other file. (In my case, the code is in file2.php, which is invoked from a form in index.php and is located in the same directory). The error appears only in Chrome, and not in Firefox or IE, where everything works fine.<\/p>\n<p>Instead of seeing the request dialog, the user gets: &#8220;API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: redirect_uri is not owned by the application.&#8221;<\/p>\n<p>My configuration is as follows (please note that there is no spaces between &#8220;https:&#8221; and &#8220;\/\/&#8221;):<\/p>\n<p>App Domains: herokuapp.com<\/p>\n<p>Hosting URL: https: \/\/mybrokenapp.herokuapp.com\/<\/p>\n<p>Site URL: https: \/\/mybrokenapp.herokuapp.com\/<\/p>\n<p>Canvas Page: http: \/\/apps.facebook.com\/mybrokenapp<\/p>\n<p>Canvas URL: http: \/\/mybrokenapp.herokuapp.com\/<\/p>\n<p>Secure Canvas URL: https: \/\/mybrokenapp.herokuapp.com\/<\/p>\n<p>Page Tab URL: http: \/\/mybrokenapp.herokuapp.com\/<\/p>\n<p>Secure Page Tab URL: https: \/\/mybrokenapp.herokuapp.com\/<\/p>\n<p>The code that invokes the dialog:<\/p>\n<pre><code>      FB.ui({method: 'apprequests',\n         to: 'nnnnnnnnn',\n             message : 'My message',\n     show_error: true\n            },\n            function (response){\n              if (typeof response == 'undefined')\n        alert('Request failed');\n      else if (response == null)\n        alert('Request canceled');\n      else\n                alert('The response was' + response);\n            }\n           );\n<\/code><\/pre>\n<p>Could anyone tell me how I can get this to work?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m writing a Facebook canvas application that is using a basic Requests dialog. The dialog works fine when I call it from index.php, but I get Error 191 when I call the same code from any other file. (In my case, the code is in file2.php, which is invoked from a form in index.php and [&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-6422","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6422","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=6422"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6422\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}