WordPress.org

Ready to get started?Download WordPress

Forums

Facebook
Adding a og:image to home page (7 posts)

  1. at_oussama
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/extend/plugins/facebook/

  2. ialima7
    Member
    Posted 1 year ago #

    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.

  3. Matt Kelly (Facebook)
    Member
    Plugin Contributor

    Posted 1 year ago #

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

  4. shansta
    Member
    Posted 1 year ago #

    You could just add something like this to your head.

    <?php if ( !is_single() ) : ?>
    <meta property="og:image" content="http://yoursite.com/img.jpg" />
    <meta property="http://ogp.me/ns#description" content="Your description" />
    <?php endif; ?>

    http://ogp.me/ns#image doesn't work if you are using sharethis etc.

  5. ialima7
    Member
    Posted 1 year ago #

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

  6. at_oussama
    Member
    Posted 1 year ago #

    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 :D

  7. DJIO
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic