Topic-icon Default Open Graph properties - overwriting the real one

Active Subscriptions:

None
hi SourceCoast,

according to the the documentation the setting under OpenGraph > Configuration > Default is:
"Default tags to be used on page *if* more specific tags are not created by Open Graph plugins or {SCOpenGraph ..} tags."
I understand this that if the plugin is not able to generate the real value for any tag it will use the default value from this configuration.

But I see that setting values in this field has quite strange results:

1. Take a look at tags generated on my website without any default values set in OpenGraph > Configuration. It seems to be everything OK here:
<meta name="twitter:description" content="Frykadelki w sosie pomidorowym .."/>
<meta property="og:description" content="Frykadelki w sosie pomidorowym .."/>
<meta name="twitter:image" content="www.kuchnia-domowa.pl/images/content/154...ie_pomidorowym.jpg"/>
<meta property="og:image" content="www.kuchnia-domowa.pl/images/content/154...ie_pomidorowym.jpg"/>
<meta name="twitter:card" content="summary"/>
<meta property="og:type" content="article"/>
<meta property="og:locale" content="pl_PL"/>
<meta property="og:url" content="www.kuchnia-domowa.pl/przepisy/dania-glo...rowym-z-mozzarella"/>
<meta name="twitter:title" content="Frykadelki w sosie pomidorowym z mozzarellÄ…"/>
<meta property="og:title" content="Frykadelki w sosie pomidorowym z mozzarellÄ…"/>
<meta property="fb:app_id" content="505024452980764"/>
<meta property="og:site_name" content="Kuchnia Domowa"/>

2. Now I set those default values:
locale=pl_PL
title=Kuchnia Domowa
image=http://kuchnia-domowa.pl/logom.png

Those default values should not influence tags generated on page mentioned in point 1 - because for title and image the real conrete values are available. But the result is unfortunately like this:

<meta name="twitter:description" content="Frykadelki w sosie .. "/>
<meta property="og:description" content="Frykadelki w sosie .. "/>
<meta name="twitter:image" content="www.kuchnia-domowa.pl/images/content/154...ie_pomidorowym.jpg"/>
<meta property="og:image" content="www.kuchnia-domowa.pl/images/content/154...ie_pomidorowym.jpg"/>
<meta property="og:image" content="kuchnia-domowa.pl/logom.png"/>
<meta name="twitter:card" content="summary"/>
<meta property="og:type" content="article"/>
<meta property="og:locale" content="pl_PL"/>
<meta name="twitter:title" content="Kuchnia Domowa"/>
<meta property="og:title" content="Kuchnia Domowa"/>
<meta property="og:url" content="www.kuchnia-domowa.pl/przepisy/dania-glo...rowym-z-mozzarella"/>
<meta property="fb:app_id" content="505024452980764"/>
<meta property="og:site_name" content="Kuchnia Domowa"/>

you can see at least 3 problems
- the tag og:image is duplicated - the concrete and default values are generated
- the real (concrete) value of twitter:title has been replaced by the default one
- the real (concrete) value of og:title has been replaced by the default one

could you please check this issue ?

thanks a lot in advance
best regards
Martin
The topic has been locked.
Support Specialist
There's a couple things that should help explain the complexities of Open Graph and how JFBConnect tries to optimize things:

- the tag og:image is duplicated - the concrete and default values are generated

Multiple og:image tags are allowed on a page. The way Open Graph is supposed to work is that they are given priority by their placement. That's why the default is always shown at the end. By adding the default image, that will still become an option when a user is given a choice to select an image. The first image should be used whenever one is taken automatically.

- the real (concrete) value of twitter:title has been replaced by the default one
- the real (concrete) value of og:title has been replaced by the default one

The defaults will be used *if* no better title is being set. JFBConnect considers the default meta title that Joomla generates automatically as a not-good title. JFBConnect will set the title tag on the page in the following priority:
1) If a {SCOpenGraph title=xyz} tag is on the page
2) If an Open Graph Plugin is enabled and has set the title tag for the page
3) If neither of the above, the default tag will be used

Since Joomla will almost always set a meta title on the page without JFBConnect, if you want to use that, we'd recommend not setting a default title. On some sites, the Joomla default title is just flat-out wrong, which is why we give a way to override it for the whole site.

Generally, we don't recommend setting a title or description default tag as those aren't usually great to apply to your whole site where other JFBConnect tags haven't been set.

I hope that helps explain,
Alex
The topic has been locked.
Active Subscriptions:

None
hi Alex,

thanks for your answer. I will remove then the default tags from my configuration. I'm not sure what you mean that Joomla title is considered as not good-title. Joomla generates as title either the Article name or the menu link title - those are perfect. If the administrator dont like - can always overwrite it in the menu option configuration of article meta data.

thanks and regards
Martin
The topic has been locked.
Support Specialist
Some sites aren't centered around Joomla content and use 3rd party extensions for their primary features. Not all of those set their titles well, or at all, which is why having an Open Graph default is an option. If you are using Joomla content or other well-behaved extensions, then not setting a default for those values is recommended to just let JFBConnect use the title that Joomla is setting.

I hope that helps explain,
Alex
The topic has been locked.