I know this one has been "done to death", but I really needed something that would work in terms of capturing the entire URL for sharing. Based on this, I have a prototype over on my forum - https://inocul8r.net/session/community/
There are three social media icons on the right. Clicking each of these will grab the URL of the page, enabling you to share whichever forum you are looking at. Typical WordPress plugins rely on CPT, which wpForo does not support - this fills the gap very well.
Not finished yet, but I'll publish the shortcode here (when I'm finished) along with the CSS 🙂
Let me know if any interest... this will support multiple social media channels when I'm finished.
These share icons are not GDPR-compliant tho because they create a connection to these platforms immediately and without user consent.
As a final point, the link that @florian provided is also in violation of GDPR then as it works in exactly the same way as my site.
https://www.pymnts.com/news/regulation/2019/dpa-website-cookies-gdpr/