How to limit thumbnails of images on Fb?

I am working on a wp blog site. Currently, og tags are not used at all.

I use a plugin for social networks so that visitors can post articles on Facebook.

Problem: When the FB sharing window appears, all the images on the page are displayed as thumbnail options that will be published with the article. In some cases, more than 20 sometimes.

How can I specify only 1 image that will be displayed in the available thumbnail options?

I would like to do this so that visitors, for example, do not select a meaningless image (for example, page advertising images or layout components)?

I tried using rel="image_src" as suggested, but that didn't make any difference.

Thanks.

+4
source share
1 answer

This works for me: I found out that even with OG meta tags, the Facebook Share plugin can present various thumbnails from my page, including all kinds of unwanted images. To get around this, I add the desired image with a small size, first after the tag:

 <img src="image_wanted_as_thumbnail.whatever" style="width:1px;height:1px;"> 

But I always use OG meta tags.

0
source

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


All Articles