How do I set a global image when sharing a link to my website?

I need to control the image displayed when sharing a link on platforms like Facebook. How do I achieve this?