Hello, the metatag that Facebook uses to get the author who posted the post is this:
<meta name=”author” content=”nomedoautor”>
Well, this has to be inserted somewhere in the post, so I made the following PHP function that should be added to functions.php
This can be done on the wordpress itself by going into Appearance Editor control panel
On the side you should select Theme Functions (functions.php) and at the end of the file by pasting the following code:
function adiciona_tag_autor_facebook($content) {
if (is_single()) {
echo '<meta name="author" content="' . get_the_author() . '"/>';
}
return $content;
}
add_filter('the_content', 'adiciona_tag_autor_facebook');
Well, as the friend said above, the first time you click to share a post on facebook, is generated a cache, in this case do the procedures that Fagner Souza said and try to share again on your facebook Timeline. (The procedures said by him will make facebook delete the current cache and generate a new one with updated information).
Or, create a new test-only post and see if the author’s name appears on the facebook card.
I hope I helped, good luck.
Post the HTML structure of the generated meta tags.
– Guilherme Nascimento
This may be related to the facebook cache. Please see this question: http://answall.com/q/115902/4793
– Daniel Omine
As @Guilhermenascimento said, it would be convenient for you to post the tag structure. Maybe this article can help: http://tableless.com.br/utilizando-meta-tags-facebook/
– vinibrsl
@Felipe-Stoker I posted an answer that I believe is valid, I would like to know solved your problem?!
– viana
@Cleidimarviana has not solved yet.
– Felipe Viero Goulart
@Felipestoker, I tried to dig deep into the question, and you’re really forgetting to close any quotes or anything like that. I changed my answer by putting an example of keyboard comparison. Take a look and make a comparison with your tags. If you provide the link of your site, I can take another look. Good Luck ai! Vlw. Flw
– viana
@Cleidimarviana for sure, the link is www.bettercallsaul.com.br
– Felipe Viero Goulart
@Felipestoker eh cara, I saw that has some goals different from Techmundo, in which I quoted in my answer. You’ll have to review everything you’ve done so far, all of the
metas
and try to fix it. I did what I could! = ) I can’t get any more than that! Abs. Good Luck.– viana
@Cleidimarviana Ball Show, thanks. Just a doubt, YOAST does not include the goals automatically?
– Felipe Viero Goulart
@Felipestoker is basically what you have to do, including Facebook Open Graph, Twitter Cards, and Google+ meta data. If you are not doing it, you can uninstall and install again, setting up from scratch, by consciousness-raising.
– viana
Press Ctrl+U on the page copy the generated HTML source and paste into the question (if it is too big paste into http://pastebin.com and put the link in the question), so we will have a sense of what is breaking your HTML, it is quite likely that it is some other plugin or something you, until then we have no way to find out.
– Guilherme Nascimento
@Guilhermenascimento edited the question with the source code.
– Felipe Viero Goulart