Use metatag article: author on Blogger with various authors

0

I have a blog on the blogger and need to share on Facebook, appear linked (in the preview of the post) the author of the post. I noticed that the tag I have to use is "article: author" and applying to a blog with just one author is relatively simple!

However, since we are several to write for the same blog, I need something that "detects" the author of the post and assigns it the correct meta tag to be recognized by facebook!

I created this condition (which works in other features that I include), but in this case it is not working, I do not know if it is simply because it does not work between tags and, because if it is inside, the condition works but FB does not read the meta tag (normal).

<b:if cond='data:post.author == "AUTOR1"'>
<meta content='URL_PERFIL_AUTOR1' property='article:author'/>
</b:if>
<b:if cond='data:post.author == "AUTOR2"'>
<meta content='URL_PERFIL_AUTOR2' property='article:author'/>
</b:if>

Could you help me spot the problem?

    
asked by anonymous 26.03.2018 / 23:36

0 answers