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 »

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: 48398
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 »

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 »

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: 48398
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 »

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 »

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: 48398
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 »

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 »

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: 48398
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 »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
pierrepisano
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 26 Feb 2023, 15:40

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

Post by pierrepisano »

Hi Jan,

I have exactly the same problem than Tim. I have deactivated JSitemap in case it was the reason of the problem.


Regards,
Pierre
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
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 »

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