Phoca Open Graph Content Plugin displays pictures on facebook incorrectly

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
Etitek
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 20 Apr 2021, 08:14

Phoca Open Graph Content Plugin displays pictures on facebook incorrectly

Post 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.
Etitek
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 20 Apr 2021, 08:14

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

Post 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/
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
Etitek
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 20 Apr 2021, 08:14

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

Post 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" />
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
Etitek
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 20 Apr 2021, 08:14

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

Post 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.
Etitek
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 20 Apr 2021, 08:14

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

Post by Etitek »

I'm going back to K2 v2.10.4 Dev Build 20210227 maybe if others ask, someone will fix it.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, maybe it will be good to ask K2 developers if there is some change which can somehow influence it :idea:

Jan
If you find Phoca extensions useful, please support the project
Etitek
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 20 Apr 2021, 08:14

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

Post by Etitek »

They found it to be the fault of the installed plugin (phoca), not K2.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Do you have more detailed information. What does exactly mean "fault of the installed plugin"?

Jan
If you find Phoca extensions useful, please support the project
Post Reply