1

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?

2
  • 1
    Please, check this previously posted answer at this link. How do I get Facebook to show my site's logo when I paste the link in a post/status/comment?
    – Anass
    Sep 1, 2016 at 21:50
  • @anass Thank you for this link. I did see it before but my inexperience with this rendered it Greek to me. :) I installed a plugin that added the required header info but it still isnt working on FB. It does work from LinkedIn however. Don't know why one works and the other doesn't.
    – DLM
    Sep 2, 2016 at 22:52

1 Answer 1

2

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" />

Update

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

15
  • Thank you! Is it really that simple? Why am I reading about having to do it with plugins and code, etc.?
    – DLM
    Sep 2, 2016 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. Sep 2, 2016 at 1:04
  • @EthanJinksO'Sullivan Is this theme specific or does wp_head() handle it?
    – Tim Malone
    Sep 2, 2016 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 Sep 2, 2016 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, 2016 at 5:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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