OG Plugin - images not showing when Render Type set to PROPERTY

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
User avatar
takeroyd
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 27 Apr 2021, 18:29

OG Plugin - images not showing when Render Type set to PROPERTY

Post by takeroyd » 27 Apr 2021, 18:36

Hi there,

I like the functionality of the Phoca Open Graph plugin, but it doesn't seem to work OK with Linkedin. When I set the Render Type to Property instead of Name, the IMAGE meta vanishes from the meta tags. Go back into Render Type: Name and everything is OK, except that the image isn't recognised by Linkedin, which seem to require <meta property="og:image...

Any ideas what could be causing this difference between the two Render Types. I have left all the other settings default.

Thanks,
Tim

Tags:

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44090
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Post by Jan » 28 Apr 2021, 14:25

Hi, there is no difference, only the "name" is changed to "property".

See:
https://www.phoca.cz/news/1128-phoca-de ... 3-released

and its source code:
Image

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

User avatar
takeroyd
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 27 Apr 2021, 18:29

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Post by takeroyd » 28 Apr 2021, 16:01

Hi Jan,

That's what I thought would happen. When I have the render type set to Name, It all seems to work fine, but I need Property for Linkedin. When I change the render type to Property & empty the cache, these are the og:image meta entry just disappears.

I've created two imgur images of the difference in my meta tags, but cannot submit the post with the BBCodes :
Getting an error message : You cannot use certain BBCodes: (square bracket)img(/square bracket).

Tim

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44090
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Post by Jan » 28 Apr 2021, 16:56

Hi, you can paste links to the images here.

But better will be to see the live site to see the source code.

The meta attributes are rendered for all attributes the same way, so when all other are rendered without problem with "property", there is no reason to render the image the same way :idea:


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

User avatar
takeroyd
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 27 Apr 2021, 18:29

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Post by takeroyd » 29 Apr 2021, 09:46

Hi Jan,
Thanks for your quick response. Here is the HTML source code meta with render type set to Name:
https://i.imgur.com/VNNvip0.png
Here's the same page with render typeset to Property & the cache emptied:
https://i.imgur.com/gpH15tq.png

Finally, here's a typical URL from the site (render type set to Name):
https://vous-venez-quand.com/s-investir/tourisme.html

Thanks,
Tim

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44090
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Post by Jan » 01 May 2021, 12:30

Hi, the question is which part renders the meta tags with name.

I see both there - with name and property? Does it mean, you are using more tools for rendering the tags? Phoca Open Graph plugin can only produce one type of meta tags (name or property but not both).

So first try to disable other tools which produces the tags to see which extension is active when displaying them?

If this will be not found, then only a debug can help (means debug directly the php file to see why some tag is not rendered ...)

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

User avatar
takeroyd
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 27 Apr 2021, 18:29

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Post by takeroyd » 04 May 2021, 11:42

Hi Jan,

Thank you very much - you found the problem. Its was a conflict with the JSitemap Pro extension.
All fixed now...!

Regards,
Tim

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44090
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: OG Plugin - images not showing when Render Type set to PROPERTY

Post by Jan » 07 May 2021, 12:46

Ok, great to hear it.

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

Post Reply