Page 1 of 1

Phoca Open Graph Content Plugin displays pictures on facebook incorrectly

Posted: 20 Apr 2021, 08:31
by Etitek
Hello, Phoca Open Graph Content Plugin does not correctly download an image from K2 v2.10.4 Dev Build 20210416. An image from another article in the same category is being downloaded.

Re: Phoca Open Graph Content Plugin displays pictures on facebook incorrectly

Posted: 20 Apr 2021, 10:41
by Etitek
Here you can see how it works. Copy any article yourself and paste it on Facebook. You will see it download a different photo.
https://www.miastojaslo.pl/

Re: Phoca Open Graph Content Plugin displays pictures on facebook incorrectly

Posted: 21 Apr 2021, 12:41
by Jan
Hi, do you use content plugin or system plugin?

On your site, in your html source code, it seems like more different extensions are displaying the meta tags but I don't see any image tag so maybe this is the reason, why FB loads image which is not asked by you - the image meta tag is just not rendered on main page. :idea:

Jan

Re: Phoca Open Graph Content Plugin displays pictures on facebook incorrectly

Posted: 21 Apr 2021, 14:06
by Etitek
<meta property = "og: image" is incorrectly retrieved than
<meta property = "og: url"

<meta property="og:title" content="Na uczniów czekają nowoczesne pracownie informatyczne - Miasto Jasło" />
<meta property="og:type" content="article" />
<meta property="og:image" content="https://www.miastojaslo.pl/images/aktua ... awirus.jpg" />
<meta property="og:url" content="https://www.miastojaslo.pl/aktualnosci/ ... yczne.html" />

Re: Phoca Open Graph Content Plugin displays pictures on facebook incorrectly

Posted: 21 Apr 2021, 16:29
by Jan
Hi, see the documentation of the Open Graph plugin:

- you can use content (used in article or blog or featured view)
- or system plugin (on other website places)

In options of the plugin you can set which image should be displayed:
https://www.phoca.cz/documents/70-phoca ... open-graph

It depends on which plugin do you use, on which options did you set and mainly on which view you are displaying the image.

Before testing on Facebook, etc, you should check the source html code to see which image is rendered there and then compare with Facebook.

Jan

Re: Phoca Open Graph Content Plugin displays pictures on facebook incorrectly

Posted: 22 Apr 2021, 08:06
by Etitek
Yes I know. After updating to the newest K2 v2.10.4 Dev Build 20210416 this problem appeared. They changed something in K2 and now phoca plugin needs to be adapted.

Odp: Phoca Open Graph Content Plugin wyświetla zdjęcia na Facebooku niepoprawnie

Posted: 22 Apr 2021, 08:20
by Etitek
I'm going back to K2 v2.10.4 Dev Build 20210227 maybe if others ask, someone will fix it.

Re: Phoca Open Graph Content Plugin displays pictures on facebook incorrectly

Posted: 25 Apr 2021, 11:24
by Jan
Hi, maybe it will be good to ask K2 developers if there is some change which can somehow influence it :idea:

Jan

Re: Phoca Open Graph Content Plugin displays pictures on facebook incorrectly

Posted: 26 Apr 2021, 11:27
by Etitek
They found it to be the fault of the installed plugin (phoca), not K2.

Re: Phoca Open Graph Content Plugin displays pictures on facebook incorrectly

Posted: 28 Apr 2021, 16:41
by Jan
Do you have more detailed information. What does exactly mean "fault of the installed plugin"?

Jan