I'm looking for a way of retrospectively adding some social media sharing buttons to a large website with many, many pages. My goal is to have intelligent and dynamic code 'scrape' the particular page for content and then share it through social media when the social media button/icon is selected. Much like how easy it is if you install a social media buttons plugin into Wordpress, it seems to integrate smoothly and know what content to share from what page.
I'm developing our own set of responsive social media buttons and then I come across the issue of putting the content to be shared in the actual URL of the button itself - for every page :o
I've looked into the 'AddThis' service and it seems neat but still seems to require hand coding of the content to be shared into the data attribute of the parent div tag. Appears to me that this solution requires a developer to hand code and customise the social media sharing buttons for each page in the website. I want to use a nested asset in the design and do this dynamically.
My proposal would be to make some unique social media metadata in the schema and then use replacement keywords to feed that metadata content to the social media button links (obviously with variations because not all social media services work the same way).
Is this a good approach or is there a much more obvious and easier way to do this?