How to create a "Share this to social media" button to allow download of a PDF?

Hey everyone, first happy new year. Second, I created an e-book that I would like the visitors to be able to download after they share the page on social media. So for example, you land on the ebook page, to download it or view it you need to share on social media, after sharing the download button appears and you can download the ebook.

Any idea how this is done on Webflow?