Phoca Open Graph Plugin

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
jc-rocks
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 10 Sep 2017, 15:25

Re: Phoca Open Graph Plugin

Post by jc-rocks »

Hi Poussemousse,

I'm not the right person to ask but, once I had installed and published the extension, what I did was create tags on a per-document basis using the document tag system. As far as I can tell this is wrong but it seems to work at least for the image. I haven't modified anything in any PHP files.

Hopelessly inadequate, I know but right now it's the best I can do ... until I get someone to explain it to me in plain English I'm a bit screwed.

James
Poussemousse
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 30 Sep 2017, 12:26

Re: Phoca Open Graph Plugin

Post by Poussemousse »

Hi JC,
thank you for your feedback but I am sure something pretty obvious is missing to use it correctly, especially for non Web specialist.
That's a pity there is no documentation with attached pictures to show examples of usage, maybe it comes one day...

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

Re: Phoca Open Graph Plugin

Post by Jan »

Hi, before testing it in Facebook development site, just see the html source code of your site and see which url to image has image meta tag.


Image

Jan
If you find Phoca extensions useful, please support the project
jc-rocks
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 10 Sep 2017, 15:25

Re: Phoca Open Graph Plugin

Post by jc-rocks »

Hi Jan,

So, not in the article tags? Must this stuff be put into the actual html code for the document?

Thx

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

Re: Phoca Open Graph Plugin

Post by Jan »

Hi, it is up to you which image will be used, see example:

This article:
https://www.phoca.cz/news/952-phoca-dow ... 3-released

has defined the image here:
Image
in Aricle - folder Images and Links

https://www.phoca.cz/documents/70-phoca ... open-graph

1) because there is no image set in plugin parameters
2) no image set in category parameters
3) no intro image in article category
4) but full image in article category - so this will be used.

In case there will be not defined 4) Phoca Open Graph plugin tries to find one in article (but not in content plugins)
If it does not find any then
5) then it tries to search plugin folder
6) or another plugin parameter

So you can manage which image will be displayed in meta tags, when you manage it, then you just take a look at the source code, if the image is right.

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