Instant Articles for WP

Description

This plugin adds support for Instant Articles for Facebook, which is a new way for publishers to distribute fast, interactive stories on Facebook. Instant Articles are preloaded in the Facebook mobile app so they load instantly.

With the plugin active, a new menu will be available for you to connect to your Facebook Page and start publishing your Instant Articles. You’ll also see the status of each Instant Articles submission on the edit page of your posts.

A best effort is made to generate valid Instant Article markup from your posts’ content/metadata and publish it to Facebook. The plugin knows how to transform your posts’ markup from a set of rules which forms a mapping between elements in you source markup and the valid Instant Article components. We refer to this “glue” between the two as the Transformer Rules.

Built-in to the plugin are many pre-defined transformer rules which aims to cover standard WordPress installations. If your WordPress content contains elements which are not covered by the built-in ruleset, you can define your own additional rules to extend or override the defaults in the Settings of this plugin, under: Plugin Configuration > Publishing Settings > Custom transformer rules.

Feed submission to Facebook

Facebook has a review process where they verify that all Instant Articles are properly formatted, have content consistency with their mobile web counterparts, and adhere to their community standards and content policies. You will not be able to publish Instant Articles in Facebook until your feed has been approved.

It’s important to note that if you use meta fields to add extra text, images or videos to your Posts, Facebook will expect you to add these to your Instant Articles output too. This plugin includes hooks to help you do that.

See Facebook’s documentation for full details of the submission process.

Facebook requires a minimum number of articles in your feed before they will review it. Once your feed has been approved, new posts will automatically be taken live on Instant Articles, and existing posts will be taken live once you update them.

Screenshots

  • Customized transformer rules enabled on the main Settings page. The particular configuration shown here would cause <u> and <bold> tags in the source markup to be rendered in italics and bold, respectively, in the generated Instant Article.

Installation

From your WordPress dashboard

  • Visit ‘Plugins > Add New’
  • Search for ‘Facebook Instant Articles for WP’
  • Activate the plugin on your Plugins page

From WordPress.org

  • Download Facebook Instant Articles for WP
  • Upload the uncompressed directory to ‘/wp-content/plugins/’
  • Activate the plugin on your Plugins page

Once Activated

  • Click on the ‘Instant Articles’ menu and follow the instructions to activate the plugin

FAQ

Installation Instructions

From your WordPress dashboard

  • Visit ‘Plugins > Add New’
  • Search for ‘Facebook Instant Articles for WP’
  • Activate the plugin on your Plugins page

From WordPress.org

  • Download Facebook Instant Articles for WP
  • Upload the uncompressed directory to ‘/wp-content/plugins/’
  • Activate the plugin on your Plugins page

Once Activated

  • Click on the ‘Instant Articles’ menu and follow the instructions to activate the plugin
Why is there content from my post missing in the generated Instant Article?

More likely than not, this is because there is markup in the body of your post that is not mapped to a recognized Instant Article component. On the “Edit Post” screen for your post, look for additional information about the transformed output shown within the Facebook Instant Articles module located at the bottom of the screen.

In the Instant Articles module for my post, what does the “This post was transformed into an Instant Article with some warnings” message mean?

When transforming your post into an Instant Article, this plugin will show warnings when it encounters content which might not be valid when published to Facebook. When you see this message, it is recommended to resolve each warning individually.

What does the “No rules defined for ____ in the context of ____” warning mean?

This plugin transforms your post into an Instant Article by matching markup in your content to one of the components available in Instant Articles markup. Although the plugin contains many built-in rules to handle common cases, there may be markup in your post which is not recognized by these existing rules. In this case, you may be required to define some of your own rules. See below for more details about where and how.

How do I define my own transformer rules so that content from my site is rendered appropriately in an Instant Article?

Your custom rules can be defined in the Settings of this plugin, under: Plugin Configuration > Publishing Settings > Custom transformer rules. More detailed instructions about all the options available is documented in the Custom Transformer Rules section of the Facebook Instant Articles SDK.

I know of a custom transformer rule which is pretty common in the community. How can it be included by default in the plugin?

You can propose popular transformer rules to be included in the plugin by suggesting it on GitHub.

How do I post articles to Instant Articles after plugin is installed?

You can re-publish existing articles (simply edit + save) or post new articles in order to submit them to Instant Articles. After you have 10 articles added, you will be able to submit them for review.

How do I change the feed slug/URL if I’m using the RSS integration?

To change the feed slug, set the constant INSTANT_ARTICLES_SLUG to whatever you like. If you do, remember to flush the rewrite rules afterwards.
By default it is set to instant-articles which usually will give you a feed URL set to /feed/instant-articles

How do I flush the rewrite rules after changing the feed slug?

Usually simply visiting the permalinks settings page in the WordPress dashboard will do the trick (/wp-admin/options-permalink.php)

Reviews

Works for me and has…

I can’t imagine trying to replicate this function myself; it does what it’s supposed to do and does it well. Looking forward to Call to Action integration. So far no problem.

Too many bugs

We used this plugin until discovered that it has bugs.
Nice codes really who did this plugin is a PHP coding genius but unfortunately it is useless with major bugs.

basically zero support

Besides the atrocious setup procedures and bugs, support is basically non existent, even simple questions asked in Support are not answered.

Can be much better

Read all 75 reviews

Contributors & Developers

“Instant Articles for WP” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

4.0.4 (2017/07/27 20:13 +00:00)

  • #738 Add changelog to script (@diegoquinteiro)
  • #737 Updates IA SDK to 1.6.2 and dependencies (@diegoquinteiro)

4.0.3 (2017/07/20 18:07 +00:00)

  • #725 Restore the $current_blog global and fix the post ID reference (@kasparsd)

4.0.2 (2017/06/30 19:36 +00:00)

  • #708 Do not process non-post pages. Fixes #707 (@diegoquinteiro)
  • #709 Add cache layer for avoiding transforming the article at page render (@diegoquinteiro)

4.0.1 (2017/06/28 18:48 +00:00)

  • #706 Check for array index before using it (@diegoquinteiro)
  • #705 Enable deletion of JSON AMP Style and removes an undef index (@vkama)
  • #704 Fixed several php notices. Also fixed a bug in should_subit_post() (@vkama)

4.0.0 (2017/06/27 17:55 +00:00)

  • #702 V4.0 (@vkama, @diegoquinteiro, @everton-rosario, @sakatam, @abdusfauzi)
  • #647 Fix “Empty string supplied as input” bug (@abdusfauzi)
  • #680 Adding support to IA->AMP conversion (@vkama)
  • #649 allow markups in footer/copyright (@sakatam)
  • #643 Open Graph Ingestion Flow (@diegoquinteiro, @everton-rosario)
  • #629 Update Google Analytics compat (@dlackty)

3.3.4 (2017/05/10 23:17 +00:00)

  • #602 Add post ID to instant_articles_content filter (@carlalexander)
  • #622 Adds ver= to invalidate plugin resource files (@everton-rosario)
  • #645 Fix wp_is_post_autosave() parameter value (@abdusfauzi)
  • #623 Allow for alternative file path for json rules (@andykillen)
  • #624 fix merge damage (@sakatam)
  • #616 Extracted anonymous inline function (@everton-rosario)
  • #609 Apester plugin support (@oraricha)
  • #617 Switch on/off configuration for enabling comments/likes by default (@everton-rosario)
  • #612 Add an option to set a footer (@sakatam)

3.3.2 (2017/02/13 19:10 +00:00)

  • #418 Call instant_articles_post_published hook to determine published status (@apeschar)
  • #611 capability to toggle RTL option (@sakatam)
  • #604 Fix typo for $provider_url at L42, L44 and L46 (@abdusfauzi)

3.3.1 (2017/01/31 17:33 +00:00)

  • #598 Fix typo on script (@diegoquinteiro)
  • #595 Add transformer rule for cite element (@davebonds)
  • #59 add vimeo.com into oEmbed $provider_name (@abdusfauzi)
  • #597 Don’t try to load embeds compat unless we’re in Instant Articles context (@diegoquinteiro, @rinatkhaziev)
  • #568 Add is_transforming_instant_article() conditional (@goldenapples)
  • #287 Ad de_DE (@swissky)
  • #578 Change save_post priority (@cmjaimet)
  • #592 Add missing information to composer.json (@onnimonni)
  • #562 Add release script (@diegoquinteiro)

3.3 (2016/12/16 02:20 +00:00)

  • #560 Remove deprecated rules and add rules for imgs inside links (@diegoquinteiro)
  • #525 Update WordPress.com stats code to use FBIA SDK. (@philipjohn)
  • #535 Fixes #515 – Enables Playbuzz plugin out of the box (@everton-rosario)

3.2.2 (2016/11/29 05:15 +00:00)

  • #543 Fix variable name (@diegoquinteiro)

3.2.1 (2016/11/25 02:58 +00:00)

  • #538 Show message on meta-box when post is filtered out (@diegoquinteiro)
  • #504 Add instant_articles_should_submit_post filter hook to allow developers control of whether the post should be submitted to IA (@rinatkhaziev)
  • #498 Release v3.2 (@philipjohn)
  • #437 Blocks publishing of articles with transformation warnings (@diegoquinteiro, @everton-rosario)
  • #423 Fixes #205 – Caption in

<

p> tag (@everton-rosario)
#435 Setup Wizard copy updates (@demoive)
#497 Getter was renamed on SDK, updating here too (@diegoquinteiro)
#417 Support for Playbuzz plugin (@everton-rosario)
#416 Use the instant_articles_post_types filter when registering metaboxes (@technosailor)

3.2 (2016/10/05 14:23 +00:00)

  • #484 Apply the second argument to the_title (@srtfisher)
  • #481 Token Invalidation flow (@everton-rosario)
  • #462 Migration from old facebook sdk (@everton-rosario)
  • #436 Wp tests migration (@everton-rosario)
  • #421 Fixes #408 adding rules for gallery (@everton-rosario)
  • #376 Added rule configuration for Instagram embed (@everton-rosario)
  • #316 Add development mode support to status meta box (@simonengelhardt)

3.1.3 (2016/09/19 17:55 +00:00)

  • #469 Release stuff for v3.1.3 (@philipjohn)
  • #450 Do not block page selection if URL is not claimed (@diegoquinteiro)
  • #464 Fixes #452 – Use of empty() on PHP prior to v5.5 (@demoive)
  • #465 Relative CSS to fix missing icons (@everton-rosario)
  • #458 Fix expiring token blocking users on page selection state (@diegoquinteiro)
  • #403 fix travis.ci build (@sakatam)
  • #425 Final release of v3.1 (@philipjohn)
  • #385 Implemented compat for the get-the-image plugin (@everton-rosario)
  • #392 Load functions which rely on plugins_loaded action hook in wp.com e… (@nprasath002)
  • #402 Properly implemented the get_cover_media function. (@menzow)
  • #420 Article with password protection (@everton-rosario)
  • #409 Check for undefined index (@gemedet)

3.1 (2016/08/17 20:17 +00:00)

  • #413 Fix lingering reference to the old settings page on meta-box (@diegoquinteiro)
  • #412 Content update (@diegoquinteiro)
  • #400 New flow (@diegoquinteiro, @everton-rosario)
  • #399 Revert “Redirect settings” (@philipjohn)
  • #394 Apply “the_title” filter (@everton-rosario)
  • #389 Redirect settings (@everton-rosario)
  • #387 Fix loadHTML warning (@gemedet)
  • #378 Added rules for jetpack carousel component (@everton-rosario)
  • #379 Don’t call wpautop directly when trying to prepare content for transformation. (@rinatkhaziev)
  • #383 Fix updating published posts result in error (@chrisadas)
  • #375 Commit blocker option – No warnings in transformer to publish (@everton-rosario)
  • #374 Jetpack plugin compatibility – Transformation rules (@everton-rosario)
  • #371 Migrated take_live parameter to the published (@everton-rosario)
  • #366 InteractiveInsideParagraphRule support and configuration (@everton-rosario)
  • #367 Add subtitle to $header when rendering post to IA (@jacobarriola)
  • #360 Improve rules for Images inside Paragraphs and Interactive elements (@everton-rosario)
  • #356 Ensure that relative URL checking has a host and a path. (@srtfisher)

3.0.1 (2016/07/13 10:19 +00:00)

  • #359 Release 3.0.1 (@philipjohn)
  • #358 Revert “escaping and sanitization fixes” (@philipjohn, @diegoquinteiro)

3.0 (2016/07/12 12:45 +00:00)

  • #355 Release v3.0 (@philipjohn)
  • #354 Remove to avoid breaking elements. See #331 (@philipjohn)
  • #353 Store and use submission ID when available to fetch the status (@diegoquinteiro)
  • #329 always use HTTPS to load JavaScript SDK; update to 2.6 (@paulschreiber)
  • #327 use v2.6 of Facebook API (@paulschreiber)
  • #263 Escape ampersands before displaying on settings page (@gemedet)
  • #301 Check if the global $post object has been set (@srtfisher)
  • #290 Fix relative URL issue with oembeds not using absolute URLs (@stuartshields)
  • #255 Support tag (@demoive)
  • #313 Fixed statically-called loadHTML() (@gemedet)
  • #258 Width and Height for Interactive in default rules (@gemedet)
  • #343 Only publish posts (ignores pages and other post types) (@diegoquinteiro)
  • #342 Replace SocialEmbed rules with Interactive rules (@diegoquinteiro)
  • #330 fix whitespace in select/optgroup tags (@paulschreiber)
  • #331 WordPress coding standards fixes (@paulschreiber)
  • #328 Fix whitespace to match WordPress coding standards (@paulschreiber)
  • #285 Remove hyperlinks beginning with a # (@markbarnes)
  • #341 Avoid crawler to cache a 404 (@diegoquinteiro)
  • #305 Allow filtering of the post types used in the feed (@philipjohn)
  • #308 Fixed error message: Deprecated: Non-static method DOMDocument::loadH… (@everton-rosario)
  • #286 Add GitHub Issue and PR templates (@simonengelhardt)
  • #177 Use H1 for header title and cover image caption (@gemedet)

2.11 (2016/05/17 15:25 +00:00)

  • #257 Fix scheduled posts with empty IA content (@Aioros)
  • #273 Copy updated to align better with scheduled posts (@demoive)
  • #271 Checks if it have the node to be shown as warning body (@everton-rosario)
  • #264 Add new application header (@diegoquinteiro)

2.10 (2016/04/29 00:01 +00:00)

  • #179 Graphics for banner and icon (@demoive)
  • #183 WordPress -> WordPress (@lesterchan)
  • #213 Labels and documentation changes re: custom transformer rules (@demoive)

2.9 (2016/04/19 17:05 +00:00)

  • #174 Prevents from being added to images that were not saved with captions (@bobderrico80)
  • #176 Remove unused image.caption property from ImageRule (@demoive)
  • #180 Fix empty articles being uploaded on bulk update (@diegoquinteiro)
  • #167 Fixes #116 encoding problem (@everton-rosario)
  • #173 Fixed empty link to Instant Articles signup (@demoive)

2.8 (2016/04/14 23:23 +00:00)

  • #151 Stop publishing drafts (@diegoquinteiro)

2.6 (2016/04/13 16:24 +00:00)

  • #115 Added information about initial publishing (@msurguy)
  • #105 Update template-settings-info.php (@piscis)

2.1 (2016/04/11 20:55 +00:00)

  • #98 Fixes #72 (@diegoquinteiro)
  • #90 Change readme.txt to reflect changes in 2.0 (@diegoquinteiro)
  • #87 Clean unused files + fixes for 5.4 compatibility (@diegoquinteiro)

2.0 (2016/04/06 17:45 +00:00)

  • #70 Use SDK engine (@diegoquinteiro)

0.2 (2016/03/09 19:44 +00:00)

  • #41 Add support for subtitles through the filter instant_articles_subtitle (@bjornjohansen)
  • #39 Jetpack compat: YouTube and Facebook embeds (@bjornjohansen)
  • #22 Migrate the wpcom-helper.php from WordPress.com. (@philipjohn)