What to do if the image of a post does not appear when sharing it on Facebook or LinkedIn?

Perhaps you have found yourself in a situation where you share a website, page, or article on Facebook or LinkedIn and the image does not appear, making it less attractive. How can you ensure that this does not happen and that the image always appears?

Many are already familiar with the Open Graph tags or “og”, the protocol used by sites like Facebook or LinkedIn to define what content to display when sharing links from our website or blog on social media.

Using the Facebook app (Facebook Debugger), we can check the result and see if the URL is correct or not. And in the absence of a similar tool from LinkedIn, we can also use the Facebook Debugger:

debug

From this same Debugger, we can also clear the cache for Facebook that stores the page in question.

The debugger indicates which metatags (specific to the Open Graph protocol) are missing in the header () to ensure that the information on the page is better indexed when a user clicks the Like button (in the case of Facebook) or simply shares the URL through the social network. The main advantages of using these metatags are to avoid errors and improve the relevance and information shared by the user.

One of the most interesting metatags is og:image, which allows us to specify the URL of an image that will be displayed when a user shares the page. When this property is not specified, Facebook will hopefully look for an image in the content to place in the user's post. However, this is not always good; for example, if the user shares the main page, the ideal image to display would be the main logo and not, for instance, a photo of an article, or in the opposite case, if an article (that has images) is shared, it would be ideal to show one of those images and not the main logo.

Another utility that will help us a lot if we have problems with the content that our website should display when sharing the URL on both Facebook and LinkedIn is “Scraped URL”:

scraped

In some cases, you may have an unclosed HTML tag or an incorrect JavaScript block that causes the robot not to interpret the page correctly.

There are basically four essential metatags: og:title, which as the name suggests is for the page title; og:type, which indicates the type of content; og:image, which has already been mentioned; and og:url, which indicates the destination URL. The ones supported by LinkedIn are og:title, og:image, and og:url; you can find the documentation here.

I hope this has been useful to you :)

Compartir:
933 658 191

Leave us your details and we will get back to you as soon as possible.

🇬🇧 View in English?