Open Graph meta tags missing from page component V3 | Community
Skip to main content
JonMaguire
Level 3
May 16, 2022
Solved

Open Graph meta tags missing from page component V3

  • May 16, 2022
  • 1 reply
  • 1130 views

We are upgrading our page component to version 3. When I test this locally, I notice the Open Graph meta tags are no longer present in our page source. The head.socialmedia.html file is gone in V3, and this seems to be what included it before. Is there a new include I need to apply, or do I need to create my own file to include? We are using AEM 6.5.12.0.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

Hi @jonmaguire,

According to following information and commit:

Since version 2.18.0 head.socialmedia.html file has been removed, and Social Media Sharing option is deprecated. If you still need to use it, I can see following options:

  1. Stay with v2 of page.
  2. use 2.17.14 version of Core Components - this is the last version that supports Social Media Sharing also in v3.
  3. create your own head.html that will refer to head.socialmedia.html  from v2.
  4. create your own head.html and custom mechanism that will handle head.socialmedia.html in similar way but it will be part of your app.
  5. accept the fact that head.socialmedia.html has been removed completely and use latest version of v3 implementation of page, according to the way how it was designed by Adobe - this will of course mean feature/functionality degradation on your end.

1 reply

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
May 16, 2022

Hi @jonmaguire,

According to following information and commit:

Since version 2.18.0 head.socialmedia.html file has been removed, and Social Media Sharing option is deprecated. If you still need to use it, I can see following options:

  1. Stay with v2 of page.
  2. use 2.17.14 version of Core Components - this is the last version that supports Social Media Sharing also in v3.
  3. create your own head.html that will refer to head.socialmedia.html  from v2.
  4. create your own head.html and custom mechanism that will handle head.socialmedia.html in similar way but it will be part of your app.
  5. accept the fact that head.socialmedia.html has been removed completely and use latest version of v3 implementation of page, according to the way how it was designed by Adobe - this will of course mean feature/functionality degradation on your end.
JonMaguire
Level 3
May 17, 2022

Thanks, @lukasz-m.

 

I knew this was deprecated, but I was hoping in V3 there was an alternative similar to what @gabrielwalt wrote here, and I just missed it, but I guess that didn't make the cut. Thanks again.

 

Jon