How can add meta info to my header page for social sharing

I added tags to the page header to customize sharing on social media, but it doesn't work.

I made a JS script that runs in the "Required Scripts" page:

This is my page header with tags from my JS:

What's the best way to do it?

You're already using a good pratice. This way your JS code can be added to other pages. Nevertheless your JS code is not "runnable" I think. I compared with the OutsystemsUI scripts and they all start themselves with a function. Like this:

(function() {    



Try putting this way.

Hi Pedro,

What does your question have to do with OutSystems?

Hello Kilian,

I'm trying to add these meta tags through a JS script, made in Outsystems. The problem is that it's not working.

My question is how to add these tags to a page developed in Outsystems, so that when shared on social networks the url is customized?


Hi Pedro,

This is not my topic of expertise, but I would assume that these meta tags need to be set before the page is transferred from the server, and as such it's really no use trying to use JavaScript to do say after the page already lives in the browser?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.