title: Facebook sharer,share image
body: <p>I found a lot of posts, but none of them help me.</p>
  
  <p>I want to share an image that is not visible.  Another issue is, when I click share, all images from the page are available for sharing. How can I fix it so that only images that I want to share are visible for sharing?  </p>
  
  <p>I have read this <a href="http://developers.facebook.com/docs/opengraph" rel="nofollow">Facebook Open Graph Protocol</a>, but that didn't help me.</p>
  
  <p>Here is my function to create a share button :</p>
  
  <pre><code>function WP_fb_sharer($post) {
  
      $link = js_escape(get_permalink($post-&gt;ID));
  
      $button = '&lt;a name="fb_share" type="box_count" share_url="' . $link . '" href="http://www.facebook.com/sharer.php"&gt;Share&lt;/a&gt;&lt;script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"&gt;&lt;/script&gt;';
  
      $button = '
      &lt;div style="float: left; margin-left: 10px; margin-bottom: 4px;"&gt;
      ' . $button . '
      &lt;/div&gt;';
      return $button;
  }
  </code></pre>
  
  <p>Is there any image size limit for Facebook?</p>