title: Stop facebook using featured image for blog sharing
body: <p>When I share a blog post from wordpress, WP defaults to the post's featured image and doesn't offer any options to select another image from within the post. I need to stop fb seeing the featured image as it's irrelevant to the share, and allow it to scrape the page for other images. </p>
  
  <p>The code within my blog post head is as follows:</p>
  
  <pre><code>&lt;meta property="og:image" content="&lt;?php echo get_fbimage(); ?&gt;"/&gt;
  </code></pre>
  
  <p>and the function is:</p>
  
  <pre><code>        function get_fbimage() {
        $src = wp_get_attachment_image_src( get_post_thumbnail_id($post-&gt;ID), '', '' );
        if ( has_post_thumbnail($post-&gt;ID) ) {
          $fbimage = $src[0];
        } else {
          global $post, $posts;
          $fbimage = '';
          $output = preg_match_all('/&lt;img.+src=[\'"]([^\'"]+)[\'"].*&gt;/i',
          $post-&gt;post_content, $matches);
          $fbimage = $matches [1] [0];
        }
        if(empty($fbimage)) {
          $fbimage = "";
        }
  
    return $fbimage;
  }
  </code></pre>
  
  <p>Any advice is greatly received</p>