There is no error message when inserting a link to Facebook, despite the correct og: image meta tag

In the headings of the main page of this page (sorry, there is a language selection help screen), Yoast SEO Plugin generates this:

<meta content="http://www.example.com/wp-content/uploads/2015/06/whatever.jpg" property="og:image">

Despite the fact that the image linked here meets the requirements of Facebook (above 200x200 pixels), there is still no image when pasting a link to Facebook. My question is why?

The Facebook debugger solves the problem on a mail basis, which is unacceptable, because my client will have to use it for each message created (the image is not displayed for all new messages posted on FB).

I can do this to some extent using this comment code :

add_filter( 'wpseo_og_og_image', function ( $content ) { return $content . '?scrape=true'; } );

But it only works after pasting the URL at least three times into the FB with the page refreshing between each time, so it’s still not acceptable.

+4
source share
3 answers

The solution was to add tags that defined the width and height of the image, see fooobar.com/questions/180492 / ...

0
source

You can use this

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="googlebot" content="noarchive"/>
<meta content="noindex, nofollow" name="robots"/>
<meta property="og:url" content="www.domain.com/img.jpg"/>
<title>loading...</title>
<script type="text/javascript" language="javascript">window.location="www.domain.com";   </script>
</head>
+2
source

, , :

, Facebook URL. , . , , ,

?

  • URL- URL- URL-, . , .

  • og: image: width og: image: height Graph , , , .

0

Source: https://habr.com/ru/post/1608332/


All Articles