Got it Itâs not exactly the same, but it looks like itâs possible to share to social media using just a link element. I found this thread on Stack Overflow which gives a list of Share URLs, and when clicked, automatically go to Facebook (or Twitter, and Google) and attach the url you choose as a link preview.
For a custom Facebook icon, you can use a link element, remove the style and select âicon instead of textâ:
Then set the destination of the link to be âexternal URLâ:
For Destination URL, the format for a Facebook share is:
*(replacing Google with any URL youâd like)
And when clicked, it will share Google (what I used as an example) to the Userâs FB profile. The format for Twitter and Google are:
http://twitter.com/share?url=http://google.com&text=Description
https://plusone.google.com/_/+1/confirm?hl=en&url=http://google.com