title: Error when trying to share a website
body: <p>I am trying to create a share link for a specific type of dynamic page on my website. The page has a base template, but then it runs a large PHP script that parses XML to build the actual useful content.</p>
  
  <p>A typical facebook share or like seems to pull the title and content of the base template, not the final page, and this was pretty useless for me, so I found this code to create a custom share link where you can overwrite the title, description, photo, etc:</p>
  
  <pre><code>            $title=urlencode($xml-&gt;pet-&gt;name . ' | DPA!');
              $url=urlencode($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
              $summary=urlencode($xml-&gt;pet-&gt;name . ' is available for adoption.');
              $image=urlencode($thumbnail_photo);
  
              ?&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;&amp;amp;p[images][0]=&lt;?php echo $image;?&gt;','sharer','toolbar=0,status=0,width=548,height=325');" href="javascript: void(0)"&gt;Share on Facebook&lt;/a&gt;&lt;/div&gt;
              &lt;?php
  </code></pre>
  
  <p>This pulls up the sharer window as desired with what appears to be the correct info, but when I go to share I get this error:</p>
  
  <blockquote>
    <p>The message could not be posted to this Wall</p>
  </blockquote>
  
  <p>My site is running Wordpress. Can anyone tell me why this error is happening?</p>
  
  <p>Also note that I have tried changing the permissions on the share, tried another browser, and even got my husband to try it on his computer and his account.</p>
  
  <p>Edit: Here is where the code came from: <a href="http://www.daddydesign.com/wordpress/how-to-create-a-custom-facebook-share-button-for-your-iframe-tab/" rel="nofollow">http://www.daddydesign.com/wordpress/how-to-create-a-custom-facebook-share-button-for-your-iframe-tab/</a></p>
  
  <p>Edit #2: For further information, the page is a "page" in Wordpress with a custom template. The template has a placeholder title which is just "Base Title". The actual displayed title on the page is generated after the fact because I have to read the XML first to find out what the title will be. All of the typical like or share codes I have tried pull "Base Title" as the title of the page I'm sharing. They also don't pull any of the images or text in the content that exists outside the page template. Ergo, they are useless to me.</p>
  
  <p>Edit #3: I put a sample URL into the facebook debugger tool and noticed something odd. Under the redirect section, the original URL was correct but the "rel="canonical"" URL is the URL for the base template. The original URL has an HTML argument that lets the PHP code know what XML to fetch. The "scraped URL" shows what happens when no argument is provided. Don't know if this helps.</p>