I have someone who wants to share my website through Facebook and they want my logo to appear in the FB post. What do I have to do on the WordPress end to have my logo automatically appear in the FB post?


I'd recommend checking out the following plugins:

Either one will take care of all of the Open Graph metadata. Once you have the plugin set up, you can simply go to your homepage and you will see a "Featured Image" widget:

Featured Image

Pick your logo and you will see the og:image which is what Facebook uses to set the post image.

<meta property="og:image" content="http://web.site/wp-content/uploads/image.jpg" />


I see that you set up the Open Graph Protocol Framework and now when I visit your website, I see the og:image metadata. Here's a preview of what it looks like if I were to share it on LinkedIn:

LinkedIn Snippet

  • Thank you! Is it really that simple? Why am I reading about having to do it with plugins and code, etc.? – DLM Sep 2 '16 at 0:55
  • @DLM Yes, because if you look at my example output, it gives meta property="og:image" which is a widely accept structure for all social sites nowadays, see more info from the Open Graph protocol's website. The places that you read about using a plugin/code may be dated. – Ethan Jinks O'Sullivan Sep 2 '16 at 1:04
  • @EthanJinksO'Sullivan Is this theme specific or does wp_head() handle it? – Tim Malone Sep 2 '16 at 1:19
  • @TimMalone My apologies, the local copy that I have for testing has the Yoast SEO plugin activate and didn't account for that. I'll update my answer – Ethan Jinks O'Sullivan Sep 2 '16 at 3:13
  • No probs, I thought it might be possible it was built in, but I hadn't come across that! Might also be worth adding some code options, should be fairly easy to hook a custom action in to do it too. – Tim Malone Sep 2 '16 at 5:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.