title: Pinterest link on wordpress gives error
body: <p>I am trying to add a pinterest link to my wordpress site. Here on stackoverflow I found the following code:</p>
  
  <pre><code>    &lt;?php 
      /*Stuff for Pinterest*/
      //getting the permalink
      $postpermalink = urlencode( get_permalink() );
      //getting the thumbnail
      $imageurl = urlencode( wp_get_attachment_url( get_post_thumbnail_id($post-&gt;ID) ) );
      /*End of Pinterest*/
  ?&gt;
  &lt;a target="blank" href="http://pinterest.com/pin/create/button/?url=&lt;?php echo $postpermalink ?&gt;&amp;media=&lt;?php echo $imageurl ?&gt;" title="Pin This Post"&gt;pinterest&lt;/a&gt;
  </code></pre>
  
  <p>But when I test it, pinterest gives me the following error:</p>
  
  <blockquote>
    <p>Whoops!
    Parameter 'method' (value link) is not one of unknown, uploaded, scraped, bookmarklet, email, iphone, button, ipad, android, android_tablet, api_sdk, extension, api_other, bad.</p>
  </blockquote>
  
  <p>I've tried tons of different links, but without success. Any ideas?</p>