Webform code to put on social media

I have done a quizz using webform submitted goal and I’d like to put it on social media, people who answer have the option to give email addresses . How do I get a code to do that? (It does only seem to work putting it on a homepage.)
Best regards,
Birgitta Sjöstrand