Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM Core Social Component

Avatar

Avatar
Validate 1
Level 1
gazzalm54335496
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
gazzalm54335496
Level 1

Likes

0 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
gazzalm54335496
Level 1

14-12-2020

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.

View Entire Topic

Avatar

Avatar
Springboard
MVP
Suraj_Kamdi
MVP

Likes

142 likes

Total Posts

156 posts

Correct Reply

41 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 3
View profile

Avatar
Springboard
MVP
Suraj_Kamdi
MVP

Likes

142 likes

Total Posts

156 posts

Correct Reply

41 solutions
Top badges earned
Springboard
Validate 1
Establish
Contributor
Ignite 3
View profile
Suraj_Kamdi
MVP

15-12-2020

@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.