[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.
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.
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="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.
My request is that you have something more or less equal to the option available in Simple Facebook Connect (by Otto), see.
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.
- The topic ‘[Plugin: Facebook] Adding a og:image to home page’ is closed to new replies.