Open Graph image info

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
jazzbird
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 12 Sep 2025, 14:33

Open Graph image info

Post by jazzbird »

Hello,

I'm using Phoca Open Graph. When sharing content on social media (esp. Twitter/X) it seems that the plugin grabs the small image found in the intro text of articles (even though I don't include the intro text when displaying articles). Does it just grab the first image referenced in the intro text? Is there a way to tell the plugin to ignore the intro text image and instead to grab the image found in the main body of the article?

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

Re: Open Graph image info

Post by Jan »

If you find Phoca extensions useful, please support the project
jazzbird
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 12 Sep 2025, 14:33

Re: Open Graph image info

Post by jazzbird »

Thank you for the reply. Would you consider adding an option to the plugin allowing users to select where the image is taken?
jazzbird
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 12 Sep 2025, 14:33

Re: Open Graph image info

Post by jazzbird »

Actually my question refers specifically to point 5 in your list of priorities:

5) If no image is set in plugin parameters or article parameters, Phoca Open Graph plugin tries to find an image inside the article. If some is found, such will be used in og:image meta tag.

Is there any way for Phoca NOT to grab the image in the intro text inside the article (not the intro image parameter), but to grab the first image in the main body of the article AFTER the <hr id="system-readmore" /> tag?

(or: to select the first image that is larger than a specific minimum size? - to avoid selecting a small thumbnail image that is too small for social media sharing)
Post Reply