Support » Plugin: Facebook » [Plugin: Facebook] Adding a og:image to home page

  • Hello all, i started working with the official facebook plugin 2 weeks ago, and its working great ( but still some bugs ), my problem now is with the open graph meta, is there any way we can change custom fields of the posts or exactly the home page, that would be a great feature since i don’t know how to setup an image to show when i share my home page, there is no problem with the posts, i got the right title and image, but when talking about homepage and custom posts, i think its cool to make a new tab like the one in ” Yoast SEO social ” that let you change image and description of the homepage and assign an unique page to all the posts that facebook can’t find the right image.
    and thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’d suggest the same thing.

    Only publishe texts (without pictures), but the theme I use has no logo, as image has just an RSS icon. Is it being posted on Facebook. I wish I could set on the plugin Facebook a standard image for the entire site, as I did with the NextGEN Facebook plugin. I had to stop using it due to duplication of other og tags.

    Plugin Contributor Matt Kelly (Facebook)


    So you want a meta box for pages/posts, as well as for homepage, so that you can define custom open graph meta tags?

    You could just add something like this to your head.

    <?php if ( !is_single() ) : ?>
    <meta property="og:image" content="" />
    <meta property="" content="Your description" />
    <?php endif; ?> doesn’t work if you are using sharethis etc.

    My request is that you have something more or less equal to the option available in Simple Facebook Connect (by Otto), see.

    yeah @ialima7, i was using SFC but i had some issues so i removed it.

    thank you all for answering me, and thanks @shansta for your trick, i’ll try to add the code to my header.php and see if it’ll work 😀

    Otto is now one of the authors of the Facebook plugin, so in my opinion SFC is quite abandoned. Let’s hope they put this option previously mentioned (as in YoastSEO and SFC) to specify a home image and/or fallback image. Meanwhile, the option @shansta suggested is the best approach.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Facebook] Adding a og:image to home page’ is closed to new replies.