Same problem, Like button doesn’t show up and it is required.
Actually if you already liked the page or you are an admin or a team member the like button doesn’t show up at all, so all you need to do is just change the color of the background to differ of the color of the like button.
this is according to their developer documents:
“Why don’t you see a Like button for your Facebook Page in the header of your Instant Articles?
Facebook only displays the Page Like button in the header of an Instant Article when the reader has not already liked (i.e. followed) the associated Page. When the reader already follows the Page, the Like button does not appear. If you or members of your team are not seeing the Page Like button on your articles, it’s probably because you already like your own Page.”
Yes, you are correct. I unliked my page and then republished the article and the like button is there. So, the reviewer could not see it because of the accent colour but I could not see it because I already like the page.
Thanks for your help.
Out of interest.
Does a subtitle, or excerpt appear on your articles under the article cover? IT looks better when there is one but not sure if this plugin is coded to do that automatically?
At the moment, mine have the cover image, the header bar with logo and author name. Then the title under which is a big blank space.
B
No, it doesn’t, I am assuming that is a theme related issue, a theme that has excerpts but the plugin “doesn’t know” how to code it for instant articles so it’s probably excluded and hence the white space.
Probably you can manually alter the instant articles by adding the excerpt after the article is published.
I am doing this with youtube videos, the plugin doesn’t pick up on the embedded videos so I add them in the instant articles manually.
Yes, just did a bit of reading. Looks like it’s pretty simple to add subtitle manually in the header section. I’ll close this off now. Once again thanks.
@autonomyscotland – Where did you find documentation to add a subtitle? I’ve been searching for a solution to this. I looked through the source code and found the filter instant_articles_subtitle; however, something else needs to happen in order to call it.
@itagility
I had the same problem. Solved by adding this function to my theme’s functions.php:
add_filter(‘instant_articles_transformed_element’, ‘my_subtitle’, 10, 1);
//the filter is provided by the fb-instant-articles plugin
//it passes in the instant_article object, which you can modify
//before it finishes rendering the feed.
function my_subtitle($article) {
global $post;
$my_subtitle = get_the_excerpt(); //replace this with whatever
//the instant article has a Header element, which has a subtitle property.
//Get it and add a subtitle
$subtitle = $article->getHeader()->withSubTitle($my_subtitle);
//return the modified instant article back into the render flow
return $article;
//verify that your /feed/instant-articles contains <h2>’s in each feed item <content> elements.
}