[Skip to main content](#vessel-content)

#   Open graph description wrong

##

- **[Udo](/forum/user/29928-udo "View Udo's Profile")**
- [![Udo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29928-udo "View Udo's Profile") Topic Author
- [ Offline](/forum/user/29928-udo)

Less More

- Posts: 220
- Thank you received: 8
-
-
-

4 years 9 months ago [\#339267](#339267) by [Udo](/forum/user/29928-udo "View Udo's Profile")  *[Open graph description wrong](/forum/30-integrations/903943-open-graph-description-wrong#339267 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.3.33  Hi, I just published the System Hikashop Social Networks plugin and enabled the Open Graph meta tag. Other options are disabled.  The tags og:title, og:type, og:image, og:url and og:site&#95;name are correct.  But og:description is incorrect. It doesnot show the product meta description, as if should. It shows the entire product description.  I found a way to correct this on a local copy of the website by changing the file plugins/system/hikashopsocial/ hikashopsocial.php  Original line 470  Changed line  After this hack og:description indeed shows the product meta description.  I'm just a PHP amateur so probably this hack is not the right way to handle the problem. But for some reason without this hack the meta description is not used in og:description.  Please advise.  Udo")* was created by *[Udo](/forum/user/29928-udo "View Udo's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.28
-- PHP version -- : 7.3.33

Hi,
I just published the System Hikashop Social Networks plugin and enabled the Open Graph meta tag. Other options are disabled.

The tags og:title, og:type, og:image, og:url and og:site_name are correct.

But og:description is incorrect. It doesnot show the product meta description, as if should.
It shows the entire product description.

I found a way to correct this on a local copy of the website by changing the file plugins/system/hikashopsocial/ hikashopsocial.php

Original line 470 Code:

$ret-&gt;description = $element-&gt;product_description;

Changed line Code:

$ret-&gt;description = $element-&gt;product_meta_description;

After this hack og:description indeed shows the product meta description.

I'm just a PHP amateur so probably this hack is not the right way to handle the problem.
But for some reason without this hack the meta description is not used in og:description.

Please advise.

Udo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDM5NDMtb3Blbi1ncmFwaC1kZXNjcmlwdGlvbi13cm9uZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

4 years 9 months ago [\#339269](#339269) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Open graph description wrong](/forum/30-integrations/903943-open-graph-description-wrong#339269 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.3.33  Hi, I just published the System Hikashop Social Networks plugin and enabled the Open Graph meta tag. Other options are disabled.  The tags og:title, og:type, og:image, og:url and og:site&#95;name are correct.  But og:description is incorrect. It doesnot show the product meta description, as if should. It shows the entire product description.  I found a way to correct this on a local copy of the website by changing the file plugins/system/hikashopsocial/ hikashopsocial.php  Original line 470  Changed line  After this hack og:description indeed shows the product meta description.  I'm just a PHP amateur so probably this hack is not the right way to handle the problem. But for some reason without this hack the meta description is not used in og:description.  Please advise.  Udo")*

Hi,

Well, the meta description of the products is to set the meta description tag in the headers of the page:
[ www.w3schools.com/tags/tag\_meta.asp](https://www.w3schools.com/tags/tag_meta.asp)
So I don't see the point of using the meta_description for the og:description tag since facebook would already be able to get the meta_description from the meta description tag.
I think it's more logical that the description is used for that tag.
Now if you want to use the meta description for the og:description tag, then of course, your modification would be necessary.
However, I'm not convinced that it would be more appropriate like that for everyone.
The main issue I see would be that the og:description tag would suddenly become empty for people who only filled the description and left the meta description empty in their products.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDM5NDMtb3Blbi1ncmFwaC1kZXNjcmlwdGlvbi13cm9uZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Udo](/forum/user/29928-udo "View Udo's Profile")**
- [![Udo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29928-udo "View Udo's Profile") Topic Author
- [ Offline](/forum/user/29928-udo)

Less More

- Posts: 220
- Thank you received: 8
-
-
-

4 years 9 months ago [\#339292](#339292) by [Udo](/forum/user/29928-udo "View Udo's Profile")  Replied by *[Udo](/forum/user/29928-udo "View Udo's Profile")* on topic *[Open graph description wrong](/forum/30-integrations/903943-open-graph-description-wrong#339292 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.3.33  Hi, I just published the System Hikashop Social Networks plugin and enabled the Open Graph meta tag. Other options are disabled.  The tags og:title, og:type, og:image, og:url and og:site&#95;name are correct.  But og:description is incorrect. It doesnot show the product meta description, as if should. It shows the entire product description.  I found a way to correct this on a local copy of the website by changing the file plugins/system/hikashopsocial/ hikashopsocial.php  Original line 470  Changed line  After this hack og:description indeed shows the product meta description.  I'm just a PHP amateur so probably this hack is not the right way to handle the problem. But for some reason without this hack the meta description is not used in og:description.  Please advise.  Udo")*

Hi Nicolas,

Using the product description in og:description only works fine if the product description is very short, under 200 characters

In my website the product description has 100-150 words and often includes a table with the specifics of variants. Then og:description is way too long.
Then using the meta description instead makes it possible to use the plugin. Especially og:image is important to me.

Like you said the effect of my hack is that meta description and og:description are identical. So what's the use? Maybe it's superfluous.
Perhaps it doesnot make sense to have og:description if one already uses the meta description?

In the Hikashop Social Networks plugin you might introduce for og:description the choice between product description, meta description or none at all.

regards,
Udo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDM5NDMtb3Blbi1ncmFwaC1kZXNjcmlwdGlvbi13cm9uZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

4 years 9 months ago [\#339310](#339310) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Open graph description wrong](/forum/30-integrations/903943-open-graph-description-wrong#339310 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.28 -- PHP version -- : 7.3.33  Hi, I just published the System Hikashop Social Networks plugin and enabled the Open Graph meta tag. Other options are disabled.  The tags og:title, og:type, og:image, og:url and og:site&#95;name are correct.  But og:description is incorrect. It doesnot show the product meta description, as if should. It shows the entire product description.  I found a way to correct this on a local copy of the website by changing the file plugins/system/hikashopsocial/ hikashopsocial.php  Original line 470  Changed line  After this hack og:description indeed shows the product meta description.  I'm just a PHP amateur so probably this hack is not the right way to handle the problem. But for some reason without this hack the meta description is not used in og:description.  Please advise.  Udo")*

Hi,

Well, both are for different things. The meta description tag is for search engines indexing. So it's important to adapt the text to get better SEO (more keywords to be searched while still readable).
The og:description tag is for Facebook sharing so it's important that the text can be read by normal humans.
So both are useful for different things and you don't necessarily want the same thing on both.

All in all, it doesn't matter much as long as they are filled.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDM5NDMtb3Blbi1ncmFwaC1kZXNjcmlwdGlvbi13cm9uZz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.063 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
