title: Facebook could not post to wall facebook error 1367001
body: <p>This self answer is the result of agonizing over the <strong>deprecated</strong> facebook sharer url based api, which kept refusing to post the URL I had setup through the sharer URL format.  The resultant response was the following no matter what privacy setting I set:</p>
  
  
  
  <pre class="lang-php prettyprint-override"><code>{
      "__ar":1,
      "error":1367001,
      "errorSummary":"Could not post to Wall",
      "errorDescription":"The message could not be posted to this Wall.",
      "payload":null,
      "bootloadable":{},
      "ixData":[]
  }
  </code></pre>
  
  <p>My mess of code. (Yes it breaks every convention known to web development and yes I inherited this code.)</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
      $url = urlencode(Domain::getDomain()."/".$details['urlname']);
      $title=urlencode($details['name']);
      $summary=$details['name'];
      $image=urlencode(constant('BASE_IMAGES').'/'.$details['gallery']['listing'][0]['thumb']['src']); 
  ?&gt;
  
  &lt;a onClick="window.open('http://www.facebook.com/sharer.php?s=100&amp;amp;p[title]=&lt;?php echo $title;?&gt;&amp;amp;p[summary]=&lt;?php echo $summary;?&gt;&amp;amp;p[url]=&lt;?php echo $url; ?&gt;&amp;amp;p[images][0]=&lt;?php echo $image;?&gt;','sharer','toolbar=0,status=0,width=548,height=325'); return false" href="javascript: void(0)"&gt;&lt;img src="/site/images/icon-facebook.png" alt="Facebook" border="0"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>The official question is as follows: Why does the sharer method of sharing links in facebook result in this error?</p>