Inserting article:tags meta in html head-element, using get tags, no wp_head

Okay, so after some more tinkering, I found another solution. This one works with or without the loop. So adding it in the template file or your single.php is fine, in the <head> of the HTML.

<?php $tags = get_the_tags($post->ID);  ?>
<?php foreach($tags as $tag) :  ?>
    <meta property="article:tag" content="<?php print_r($tag->name);?>" />
<?php endforeach; ?>

It also works on the page, I get it working with no html or php present whatsoever in the single.php.