0
The thing is, I have an audio player on Html5 and javascript, when I try to share a song on the face for example, the post does not go with the title of the audio, but only with the title of the page, my question is how can I do so that when sharing is shown also the name of the audio being shared.
I tried using a variable that takes the name of the running song, but the "og" tag does not recognize html:
<?php $description = '<span class="center" id="npTitle"></span>';?>
I tried to call her that:
<meta property="og:description" content="<?php echo $description;?>" />
But it doesn’t work, any suggestions, is it possible to solve without having to reformulate the whole player? Thank you!
My player: http://leituracrista.com/audioplayer/player.php?ip=hinosSalmosCanticos#0
The question is: why are you trying to put an HTML code inside the tag? It should not only receive the text referring to the variable
$description
?– Woss
Hello @Andersoncarloswoss, thank you for asking, is because this description text is dynamic and changes according to the url, is an audio player on Html5, so when you click to share it should take the value of the tag Description, which changes according to the audio that’s playing. If you want to take a look, anyway thank you & #Xa; http://leituracrista.com/audioplayer/player.html?ip=hinosSalmosCanticos#0
– Miguel Silva