Social sharing In AEM | Community
Skip to main content
Jai1122
Level 4
October 16, 2015
Solved

Social sharing In AEM

  • October 16, 2015
  • 2 replies
  • 1851 views

Hi Guys,

   I am trying to add social sharing options to my blog pages.  The context is that author will share the article/blog to the organisation's social page [This is not for end user, should be only for author]

Can some one tell me whether the following will work??

Pinterest:

    <a data-description="Blog title 1" data-media="/content/dam/content-images/gap/summary_share.png" href="https://in.pinterest.com/pin/create/button/">Next stop: Pinterest</a>

Tweet Share:
    <a href="https://twitter.com/share">Tweet this</a>

FB Share:

    <a href="https://www.facebook.com/sharer/sharer.php">Share this </a>

This  is existing code, and i have to use this minimal changes. Not sure if it works or not.

Please let me know your comments

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 Lokesh_Shivalingaiah

It should work!! You can also use any of the 3rd party plugins like 'ShareThis' or JQuery Plugins 'Social' etc.

Also according to me, better to make these as a page properties and allow authors to select the social medias where they would like to share these pages once activated. Based on these properties share them using the APIs to share them on activation.

2 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

It should work!! You can also use any of the 3rd party plugins like 'ShareThis' or JQuery Plugins 'Social' etc.

Also according to me, better to make these as a page properties and allow authors to select the social medias where they would like to share these pages once activated. Based on these properties share them using the APIs to share them on activation.

Jai1122
Jai1122Author
Level 4
October 16, 2015

Thanks a ton bsloki!!