내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

AEM Core Social Component

Avatar

Level 2

Hi,

 

We are extending the AEM Social Sharing core component to implement Linkedin and Twitter links also.

 

AEM Core component uses for OG Tags (og:title, og:url, og:description, og:image) for facebook implementation. We have different parameters appended to URL for each social site. 

 

In og:url we are putting the URL along with the parameter to be shared on facebook. But linkedin is also picking up the same url. We need different URL for linkedin.

 

What can be the done to share different URLs on facebook and linkedin for same page.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 2

Hi @rsl_lucky 

 

You can override page dialog and sharing.html file and you can call your own java class for your changes.

원본 게시물의 솔루션 보기

4 답변 개

Avatar

Community Advisor

@gazzalm54335496 

In that case, you need to override functionality AEM core sharing component

/apps/core/wcm/components/sharing/v1/sharing

Create new social share component by providing property called sling:resourceSuperType="core/wcm/components/sharing/v1/sharing"

after that create a new file named sharing.html and update your code according to requirement.

 

Also, one more thing you need to extend the functionality of SocialMediaHelper sling model.

Avatar

Level 2
We are overriding the class and sharing.html. But issue was with og:url tag. Both linkedin and facebook use this tag and share the URL hich is given in og:url property. What we did now we removed og:url tag from page metadata and now we can share URLs with different parameters on facebook and linkedin

Avatar

Level 5

Hi Suraj_Kamdi , gazzalm54335496,

Can you share across the steps and the component package as we do have same implementation on our site to extend other social media links i.e.. LinkedIn and twitter on top of existing Facebook, Pinterest media buttons.

 

 

Avatar

정확한 답변 작성자:
Level 2

Hi @rsl_lucky 

 

You can override page dialog and sharing.html file and you can call your own java class for your changes.