How can I [programatically] set the value of the web url link for social bar buttons?

When we add social bar on the purpose of sharing our store in social media platforms, is there a way we can set the value of the url link via code? Thanks!