Phoca Open Graph Plugin on Blog pages in Joomla

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
scottmitchell56
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 16 Jun 2017, 17:26

Phoca Open Graph Plugin on Blog pages in Joomla

Post by scottmitchell56 »

Hi, everything seems to be working fine for me except on Blog layouts. In this case I actually get two sets of Open Graph tags, which results in Facebook taking the final version of the tag, which is usually one of the articles mentioned on the page, and not the Blog page itself.

Here's an example:
<meta property="og:title" content="[CORRECT MAIN PAGE TITLE]" />
<meta property="og:type" content="article" />
<meta property="og:image" content="[CORRECT IMAGE]" />
<meta property="og:url" content="https://[CORRECT URL.org]/" />
<meta property="og:site_name" content="[CORRECT SITE NAME.org]" />
<meta property="og:description" content="[CORRECT DESCRIPTION]" />
<meta property="fb:app_id" content="[APPIDISHERE]" />
<meta property="og:title" content="[SUB-ARTICLE TITLE]" />
<meta property="og:image" content="https://[SUB ARTICLE IMAGE].jpg" />
<meta property="og:description" content=" [SUB-ARTICLE DESCRIPTION] " />
<meta property="og:title" content="SUB-ARTICLE TITLE]" />
<meta property="og:image" content="https://[ANOTHER SUB ARTICLE IMAGE].JPG" />
<meta property="og:description" content="[ANOTHER SUB-ARTICLE DESCRIPTION] " />

This blog layout is sitting in a module on the main page of the site. When I disable the module the Open Graph tags are correct.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Open Graph Plugin on Blog pages in Joomla

Post by Jan »

Hi, do you use system or content plugin? Or both?

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