SlideShare a Scribd company logo
Turn Your Blog into
Facebook Instant Articles
+ Contentful Intro
vienna.html Meetup, June 2016
By Rouven Weßling ( )
Ecosystem Developer / Developer Evangelist, Contentful
@RouvenWessling
photo credit: by Matthias RippVienna night view (license)
Like a CMS... without the bad bits.
Contentful is a content management developer platform with an API at its
core.
What is Contentful?
Contentful is a content management system (a bit like WordPress)
built as a cloud platform (like SalesForce)
with an API-first approach for developers (think Twilio)
Customers
A web application for managing content
Powerful API’s for delivering content to any platform and device
Why does Contentful exist?
New devices
Why does Contentful exist?
New channels, including push
Why does Contentful exist?
New technologies (front & backend)
Why does Contentful exist?
The architecture of the web is changing and moving content beyond a
page-centric web
2000
A web of linked pages
2016+
Linking programmable objects
between connected clouds
Contentful and Static Sites
Why?
vienna.html - Turn your Blog into Facebook Instant Articles + Contentful Intro
vienna.html - Turn your Blog into Facebook Instant Articles + Contentful Intro
Integrations
Sync Webhook
Getting the content
Facebook Instant Articles
for Static Sites
0:06
How is it so fast?
Reduced markup
No JS in main document
Stored on Facebook's server
Aggresivly cached
Markup
<head>
<meta charset="utf-8">
<meta property="op:markup_version" content="v1.0">
<!-- The URL of the web version of your article -->
<link rel="canonical" href="http://example.com/article.html">
<!-- The style to be used for this article -->
<meta property="fb:article_style" content="myarticlestyle">
</head>
vienna.html - Turn your Blog into Facebook Instant Articles + Contentful Intro
vienna.html - Turn your Blog into Facebook Instant Articles + Contentful Intro
<body>
<article>
<header>
<!-- The cover image shown inside your article -->
<figure>
<img src="http://mydomain.com/path/to/img.jpg" />
<figcaption>This image is amazing</figcaption>
</figure>
<!-- The title and subtitle shown in your article -->
<h1>Title </h1>
<h2>Subtitle </h2>
<!-- A kicker for your article -->
<h3 class="op-kicker">This is a kicker</h3>
<!-- The author of your article -->
<address>
<a rel="facebook" href="http://facebook.com/brandon.diamond">Brandon Diamond</a>
Brandon is a avid zombie hunter.
</address>
<!-- The published and last modified time stamps -->
<time class="op-published" dateTime="2014-12-11T04:44:16Z">December 11th, 4:44 PM</time
<time class="op-modified" dateTime="2014-12-11T04:44:16Z">December 11th, 4:44 PM</time>
</header>
</article>
</body>
<!-- An image within your article -->
<figure>
<img src="http://mydomain.com/path/to/img.jpg" />
<figcaption>This image is amazing</figcaption>
</figure>
<!-- A map within your article -->
<figure class="op-map">
<script type="application/json" class="op-geotag">
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [[23.166667, 89.216667], [23.166667, 89.216667]]
},
"properties": {
"title": "Jessore, Bangladesh",
"radius": 750000,
"pivot": true,
"style": "satellite",
}
}
</script>
</figure>
How do I get it to Facebook?
Publishing API vs. RSS feed
For static sites, use the RSS feed.
RSS limitations
The feed is ingested roughly every 10 minutes.
If an article has been modified more than 24 hours before ingestion, it will be
ignored.
No more than 100 articles, sorted by modification time, will be ingested.
Deleted articles won't be deleted automatically
Markup limitations
Analytics
<figure class="op-tracker">
<iframe>
<script>
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)
analytics.load('XXXXXXXXXXXXXXX');
analytics.page()
}}();
</script>
</iframe>
</figure>
vienna.html - Turn your Blog into Facebook Instant Articles + Contentful Intro
Use Markdown
and clean it up
require 'kramdown'
module FbiaHelper
def render_fbia_markdown(text)
html = Kramdown::Document.new(text.to_s, {:auto_ids => false, :html_to_native => true}).to_html
return html
end
end
https://github.com/contentful-labs/kramdown-instant-article
Ignore what doesn't work
Syntax highlighted code
Complex mediaplayers (use iFrames)
Complex layouts (e.g. multi column)
def markdown_has_codeblock(text)
text && text.include?("~~~")
end
More Info
https://developers.facebook.com/docs/instant-articles
https://www.contentful.com/blog/2016/05/13/facebook-instant-articles-and-
contentful/
https://github.com/contentful-labs/kramdown-instant-article
Slides will be available on Slideshare: http://www.slideshare.net/rwessling

More Related Content

PDF
contentful_sec
PDF
The Anatomy of Content Management (workshop by J Gollner at Intelligent Conte...
PDF
AEM_eCommerce_integration_patterns
PDF
Progressive Web Apps
PPTX
Umbraco Show & Tell, London 2017
PPTX
Tom van gaever-sp_serviceapplications_spsbe17
PPTX
Benefits of developing single page web applications using angular js
PDF
Single page application
contentful_sec
The Anatomy of Content Management (workshop by J Gollner at Intelligent Conte...
AEM_eCommerce_integration_patterns
Progressive Web Apps
Umbraco Show & Tell, London 2017
Tom van gaever-sp_serviceapplications_spsbe17
Benefits of developing single page web applications using angular js
Single page application

What's hot (20)

PPTX
Single page application
PPTX
Single Page Application
PPTX
Single page App
PDF
Single Page Apps
PPT
sell idea
PDF
Single page applications with backbone js
PDF
Scaling Wordpress
PPTX
How do you build flexible platforms that focuses on business needs? by Fahim...
PPTX
Azure Web Apps - Introduction
PPTX
Azure Serverless Conf
PPTX
Building Modern Web Applications with ASP.NET5
PDF
Personalisation - Small Steps for Big Gains
PDF
«The Grail: React based Isomorph apps framework»​
PPTX
Visualforce
PPTX
Building SharePoint Single Page Applications Using AngularJS
PDF
«Разрушаем Вавилонскую Башню WWW с помощью веб-компонент»​
PDF
Shift Remote FRONTEND: Optimizing Content Management with the Headless CMS - ...
PDF
API Economy, Realizing the Business Value of APIs
PPTX
MSDN Sessions 032817 - Azure Functions
PPTX
SharePoint Server 2013: to app or not to app?
Single page application
Single Page Application
Single page App
Single Page Apps
sell idea
Single page applications with backbone js
Scaling Wordpress
How do you build flexible platforms that focuses on business needs? by Fahim...
Azure Web Apps - Introduction
Azure Serverless Conf
Building Modern Web Applications with ASP.NET5
Personalisation - Small Steps for Big Gains
«The Grail: React based Isomorph apps framework»​
Visualforce
Building SharePoint Single Page Applications Using AngularJS
«Разрушаем Вавилонскую Башню WWW с помощью веб-компонент»​
Shift Remote FRONTEND: Optimizing Content Management with the Headless CMS - ...
API Economy, Realizing the Business Value of APIs
MSDN Sessions 032817 - Azure Functions
SharePoint Server 2013: to app or not to app?
Ad

Similar to vienna.html - Turn your Blog into Facebook Instant Articles + Contentful Intro (20)

PDF
Facebook Update #DME14
PDF
Open Graph Protocol for Facebook
PPTX
Real Time Trends in Ads - Creating Intelligent Social Ads
PPT
Introducing Facebook
PDF
Facebook integration w notes
PDF
Facebook Instant Articles: What Bloggers Need to Know
PPT
RSS: What's in it for me?
PPT
RSS: What's in it for me?
PDF
Inform: Targeting the Interest Graph
PPTX
Content Management Strategies
PDF
Content and seo for Tulos by Gianluca Fiorelli
PDF
SXSW Hacking RSS: Filtering & Processing Obscene Amounts of Information
PDF
Hacking RSS: Filtering & Processing Obscene Amounts of Information (short ve...
PDF
ActivityStrea.ms: Is It Getting Streamy In Here?
PPT
Wordpress + Facebook by Sean Blanda
PDF
How to implement open graphtags
PDF
Free Range Content: Unlock Your Content to Increase Your Reach
PDF
#SMWKND 2015: Facebook Hacks in 45 Minutes
PPT
New York Technology Council 10-12
PDF
Why Hire Top Contentful Developers.pdf
Facebook Update #DME14
Open Graph Protocol for Facebook
Real Time Trends in Ads - Creating Intelligent Social Ads
Introducing Facebook
Facebook integration w notes
Facebook Instant Articles: What Bloggers Need to Know
RSS: What's in it for me?
RSS: What's in it for me?
Inform: Targeting the Interest Graph
Content Management Strategies
Content and seo for Tulos by Gianluca Fiorelli
SXSW Hacking RSS: Filtering & Processing Obscene Amounts of Information
Hacking RSS: Filtering & Processing Obscene Amounts of Information (short ve...
ActivityStrea.ms: Is It Getting Streamy In Here?
Wordpress + Facebook by Sean Blanda
How to implement open graphtags
Free Range Content: Unlock Your Content to Increase Your Reach
#SMWKND 2015: Facebook Hacks in 45 Minutes
New York Technology Council 10-12
Why Hire Top Contentful Developers.pdf
Ad

More from Rouven Weßling (11)

PDF
API Days Australia - Automatic Testing of (RESTful) API Documentation
PDF
Adapting our API for multiple platforms
PDF
API Days Paris - Automatic Testing of (RESTful) API Documentation
PDF
php[world] 2016 - API Mashup - Combining APIs for Fun and Profit
PDF
Nordic APIs - Automatic Testing of (RESTful) API Documentation
PDF
PHPcon Poland - Static Analysis of PHP Code – How the Heck did I write so man...
PDF
API World 2016 - API Mashup - Combining for Fun and Profit
PDF
vienna.js - Automatic testing of (RESTful) API documentation
PDF
Static Analysis of PHP Code – IPC Berlin 2016
PDF
What is the Joomla Framework and why do we need it?
KEY
Joomla Day DK 2012
API Days Australia - Automatic Testing of (RESTful) API Documentation
Adapting our API for multiple platforms
API Days Paris - Automatic Testing of (RESTful) API Documentation
php[world] 2016 - API Mashup - Combining APIs for Fun and Profit
Nordic APIs - Automatic Testing of (RESTful) API Documentation
PHPcon Poland - Static Analysis of PHP Code – How the Heck did I write so man...
API World 2016 - API Mashup - Combining for Fun and Profit
vienna.js - Automatic testing of (RESTful) API documentation
Static Analysis of PHP Code – IPC Berlin 2016
What is the Joomla Framework and why do we need it?
Joomla Day DK 2012

Recently uploaded (20)

PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PPTX
Weekly report ppt - harsh dattuprasad patel.pptx
PDF
AutoCAD Professional Crack 2025 With License Key
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PPTX
Monitoring Stack: Grafana, Loki & Promtail
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PDF
Download FL Studio Crack Latest version 2025 ?
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Designing Intelligence for the Shop Floor.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Salesforce Agentforce AI Implementation.pdf
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Weekly report ppt - harsh dattuprasad patel.pptx
AutoCAD Professional Crack 2025 With License Key
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
Monitoring Stack: Grafana, Loki & Promtail
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
Download FL Studio Crack Latest version 2025 ?
Wondershare Filmora 15 Crack With Activation Key [2025
Oracle Fusion HCM Cloud Demo for Beginners
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
wealthsignaloriginal-com-DS-text-... (1).pdf
Odoo Companies in India – Driving Business Transformation.pdf
Designing Intelligence for the Shop Floor.pdf
CHAPTER 2 - PM Management and IT Context
Salesforce Agentforce AI Implementation.pdf
Design an Analysis of Algorithms I-SECS-1021-03
Reimagine Home Health with the Power of Agentic AI​
Advanced SystemCare Ultimate Crack + Portable (2025)

vienna.html - Turn your Blog into Facebook Instant Articles + Contentful Intro