• One problem that’s cropping up is that if there’s no post thumbnail (in this case a static home page, the plugin still writes an empty OG tag in the <head> section:

    <meta property=”og:image” content=””/>

    If you’re using another method, such as SEO Yoast or putting your own OG tags in the head, this causes an error with Facebook since it’s interpreted as a malformed url showing up after any other OG tags (even though it’s just an empty content string) and then all other OG tags seems to get completely ignored.

Viewing 1 replies (of 1 total)
  • I realize that this is a lame fix, but it will work until the developers update this plugin. If you can FTP into your site, go to wp-content > plugins > share-social. Open index.php and around line 1049 it has $headfixes = '<meta property="og:image" content="'.wp_get_attachment_thumb_url( get_post_thumbnail_id(), 'thumbnail' ).'"/>';

    I just commented out that line, so now it’s: //$headfixes = '<meta property="og:image" content="'.wp_get_attachment_thumb_url( get_post_thumbnail_id(), 'thumbnail' ).'"/>';

    Now I can run the Facebook debugger (https://developers.facebook.com/tools/debug/) and it works great.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with empty OG image tag’ is closed to new replies.