I want to read the URL and set og tags according to the result I get.
I'm trying document.write but Facebook doesn't see them
Example:
<head>
<script>
if(a==b){
document.write('<meta property="og:title" content="Wow... A equals B, who knew!" />');
}
</script>
</head>
Is there a better way to do this?