Facebook og:image and og:url paths. | Adobe Higher Education
Skip to main content
Level 3
October 5, 2023
Respondido

Facebook og:image and og:url paths.

  • October 5, 2023
  • 1 resposta
  • 725 Visualizações

We have three different websites (e.g. examples1.com, examples2.com, examples3.com), the Social Media Sharing for Facebook and Pinterest are working but for "og:image" and "og:url" all pointing to the same domain(examples1.com). Where or how could we set up for the other two domains(examples2.com, examples3.com)?

Right now all three sites og:image looks like this:

meta property="og:image" content="https://www.examples1.com/image.png?ck=1695303786"

Using out of box <sly data-sly-include="head.socialmedia.html"></sly>

Thanks.

 

 

Este tópico foi fechado para respostas.
Melhor resposta por EstebanBustamante

Unfortunately, the Sharing component is deprecated[1] and originally it didn't support a multi-tenant implementation as far as I can see: https://github.com/adobe/aem-core-wcm-components/blob/b4327c3fedf2ade81cb52b6dccadad18cb780c8d/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/models/v1/SocialMediaHelperImpl.java#L534 

 

However, this relies on the externalizer feature which means it is easy to extend and adjust to a multi-tenant solution if needed. Please refer to this link for such customization: https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/spa-editor/angular/extend-component.html?lang=en 

 

[1]. https://experienceleague.adobe.com/docs/experience-manager-core-components/using/wcm-components/sharing.html?lang=en 

1 Resposta

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 9, 2023

Unfortunately, the Sharing component is deprecated[1] and originally it didn't support a multi-tenant implementation as far as I can see: https://github.com/adobe/aem-core-wcm-components/blob/b4327c3fedf2ade81cb52b6dccadad18cb780c8d/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/models/v1/SocialMediaHelperImpl.java#L534 

 

However, this relies on the externalizer feature which means it is easy to extend and adjust to a multi-tenant solution if needed. Please refer to this link for such customization: https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/spa-editor/angular/extend-component.html?lang=en 

 

[1]. https://experienceleague.adobe.com/docs/experience-manager-core-components/using/wcm-components/sharing.html?lang=en 

Esteban Bustamante