You are on page 1of 1

for Developers Documentos Herramientas Ayuda Mis apps Buscar docum entación para desarrolladores

IMPORTANTE: Para todas las comunicaciones por correo electrónico relacionadas con los requisitos de cumplimiento, asegúrate de que envías el mensaje desde la dirección de correo
electrónico de contacto registrada en el panel de apps y que dicha dirección está en el campo "Para", no en el de "CC" ni "CCO". Si no lo haces así, no recibiremos el mensaje. Consulta en esta
publicación del blog para desarrolladores los detalles sobre el proceso de apelación. ¡Gracias!

Artículos En esta página


instantáneos

Primeros pasos
Diseñar tus artículos Se actualizó este documento. Volver al documento en español
La traducción en español no está disponible todavía.
Artículos de
ejemplo Actualización del documento en inglés: 2 de nov.
Actualización del documento en español: 11 de ene.
Dar formato a tus
plantillas
Create Article
Importar tus
artículos
RSS Feeds for Instant Articles
Introducción
Instant Articles support syndication using a secure RSS feed. This feed can integrate seamlessly with your existing
WordPress work low if new stories are automatically syndicated as Instant Articles whenever you publish them from your regular
Inserción del content management system. Note that this will need to be an Instant Articles-speci ic RSS feed and is not the same as
rastreador
other RSS feeds you may already have.
API
SDK
You should only publish new stories via your Instant Articles RSS feed when they are also publicly available on your
Creador de
artículos website. The Instant Articles system requires access to each article's standard web URL to render the content
instantáneos properly. Enviar comentarios

RSS
Otras plataformas
de publicación
Módulos de llamada Import Articles with an RSS Feed
a la acción
Monetización Here's how to set up automated publishing using an RSS feed:
Subscriptions
Políticas
1. Create an RSS Feed
Ayuda
Preguntas
frecuentes To enable automated publishing of your Instant Articles, con igure your content management system to generate an RSS
feed which contains the full content of each article in Instant Articles markup. This feed should be new and separate from
Glosario
other RSS feeds you may already operate.
Blog

Each article in this RSS feed must be represented as an <item> and should include a set of elements that contain the
article content and all relevant metadata. While not all elements are required, it's best to include the entire set of elements
to provide as much context about your Instant Articles as possible.

Articles from your RSS feed will be ingested by Facebook multiple times every hour. As a best practice, we recommend
that your RSS feed includes only articles that have been created or updated in the last hour to ensure a su icient overlap
between pulls of your RSS feed. Once new or updated articles have been ingested successfully, you can remove them
from your RSS feed.

Element Description Required

<title> The headline of the article. Yes

<link> The canonical URL for this article on your Yes


site.

<content:encoded> The full content of your article, in HTML Yes


form. Remember to escape all HTML
content by w rapping it w ithin a CDATA
section.

<guid> A string that provides a unique identifier


for this article in your feed.

<description> A summary of your article, in plain text


form.

<pubDate> The date of the article’s publication, in


ISO-8601 format.

<author> Name of the person w ho w rote the


article. Use multiple <author> elements
for multiple authors.

2. Connect the RSS Feed to Your Facebook Page

Specify the RSS feed that will distribute your content to Facebook through Creator Studio for your Facebook Page. From
Creator Studio select Links under the Published or Pre-Published header from the menu on the left hand side and click on
the gear icon on the right to open the Instant Articles Con iguration screen. Then scroll to RSS Feeds and click on the
Add button for Production RSS Feed.

Though optional, we recommend con iguring basic authentication (username and password) for your RSS feed and
serving it with SSL/TLS (i.e. HTTPS) if you want your feed to be private.

You can specify a username and password for your feed on the Con iguration page when adding a new RSS Feed.
Facebook will encrypt and store these internally for use when publishing your content.

Once your RSS feed has been approved and you activate your feed, all new articles received from your RSS feed will
automatically appear in Instant Article form when you share them on your Page.

If you want to disable automatic conversion, check the box for “Import all articles as drafts” under Production RSS Feed
when adding the RSS Feed. Yo'll see all articles in draft on the Pre-Published section of Creator Studio. Learn more about
managing your Instant Articles library.

You can also con igure a development RSS feed for testing purposes. Articles from the development feed are isolated from
your production feed and will never be publicly visible. Read more about the development feed below in the Development
RSS Feed section.

3. Verify Your Feed Is Being Ingested Properly

Once you’ve connected your RSS feed to your Facebook Page, Facebook will pull stories from your RSS feed into the
Instant Articles system.

If there are no RSS feed errors, ensure that your articles are populating the Instant Articles library associated with your
Facebook Page. From Creator Studio select Links under Published in the menu on the left hand side, and select Instant
Articles as Post Type. The Instant Articles library looks like this:

4. Update Published Articles

At times you may need to update the content of a previously published article, as in the case of a developing news story.
To automatically specify an article to update and republish, its HTML must include the op-published and op-modi ied
<time> elements, and the updated article must be redistributed via your RSS feed.

Facebook checks your RSS feed multiple times each hour to determine if any of your Instant Articles content has been
updated. An Instant Article will be updated and republished if the op-modi ied date for an article in your RSS feed is more
recent than the op-modi ied date of the existing article in your library.

There are a few limitations to consider when updating articles that have been previously published:

Facebook pulls a maximum of 100 items that are new or modi ied since the last pull. If you are adding or changing
more than 100 items every ten minutes or so, the Instant Articles system will only update the irst 100 items, sorted
by modi ied time, with the most recent appearing irst.

If an update to an existing Instant Article is more than 24 hours old based on its op-modified time, it will be
ignored by the pull. For example, if your feed is pulled at 12:00pm on October 8th and an article in your feed with
the op-modi ied time set to 11:59am on October 7th, it will be ignored.

If you attempt to update an existing article through your RSS feed and the update is ignored, Facebook will continue to
display the most recent version of the article in the Instant Articles system. Changes to published Instant Articles that are
more than one day old can be implemented manually, via the web-based Instant Articles editor tool accessible from your
Facebook Page.

Media assets associated with an RSS item will only update if the URL of the media asset has changed.

5. Ensure Facebook Crawler Can Reach Your Content

To properly distribute your content to Instant Articles, ensure your content is visible to our crawler. If you normally restrict
access to your content, you'll need to add our crawler to your allwo list. Please refer to our Facebook Crawler guide for
advice on how to identify our crawler and preferred approaches to allow listing.

6. Submit Your Feed for Review

You will be able to activate your Instant Articles feed after it has successfully passed the Article Review. Until then, you
won't be able to publish Instant Articles.

Development RSS Feed

Publishers with an approved production RSS feed can set up a separate development RSS feed to develop and test
changes. The development feed is isolated from your production feed, and articles from this feed will never be publicly
visible.

To set up a development feed, from the left navigation of your Page, click Creator Studio then select Links under
Published or Pre-Published in the menu on the left of the screen, and select Instant Articles as Post Type. Click on the
gear icon and scroll to ind the Development RSS Feed section:

Input the URL of your development RSS feed and provide HTTP authentication credentials if needed. Click Save and
Facebook will begin to pull content from the feed every 3 minutes. After the irst pull, you will see an updated status for
the feed as well as any warnings or error messages from the processing.

Find your development instant articles

If your development feed is error-free and articles have been ingested, you will see these articles in a separate “sandbox”
section of your Instant Articles library. To ind the articles, go to Creator Studio > Pre-Published section in the menu on
the left side, then Links and ilter by Instant Articles using the Post Type dropdown. Finally, make sure the Drafts toggle is
selected to display your development articles.

The library of your articles from the development feed will look like this:

From here, you can create, edit and delete articles in the development sandbox.

Sample RSS Feed

This is an example of an RSS 2.0 feed optimized for Instant Articles:

<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>News Publisher</title>
<link>http://www.example.com/</link>
<description>
Read our awesome news, every day.
</description>
<language>en-us</language>
<lastBuildDate>2014-12-11T04:44:16Z</lastBuildDate>
<item>
<title>This is an Instant Article</title>
<link>http://example.com/article.html</link>
<guid>2fd4e1c67a2d28fced849ee1bb76e7391b93eb12</guid>
<pubDate>2014-12-11T04:44:16Z</pubDate>
<author>Mr. Author</author>
<description>This is my first Instant Article. How awesome is this?</description>
<content:encoded>
<![CDATA[
<!doctype html>
<html lang="en" prefix="op: http://media.facebook.com/op#">
<head>
<meta charset="utf-8">
<link rel="canonical" href="http://example.com/article.html">
<meta property="op:markup_version" content="v1.0">
</head>
<body>
<article>
<header>
<!— Article header goes here -->
</header>

<!— Article body goes here -->

<footer>
<!— Article footer goes here -->
</footer>
</article>
</body>
</html>
]]>
</content:encoded>
</item>

<!— Another Article (Each Article must be represented as an <item>) -->


<item>
<title>This is another Instant Article</title>
<link>http://example.com/another_article.html</link>
<pubDate>2017-02-14T05:20:00Z</pubDate>
<content:encoded>
<![CDATA[
<!doctype html>
<html lang="en" prefix="op: http://media.facebook.com/op#">
<head>
<meta charset="utf-8">
<link rel="canonical" href="http://example.com/another_article.html">
<meta property="op:markup_version" content="v1.0">
</head>
<body>
<article>
<header>
<!— Article header goes here -->
</header>

<!— Article body goes here -->

<footer>
<!— Article footer goes here -->
</footer>
</article>
</body>
</html>
]]>
</content:encoded>
</item>

</channel>
</rss>

Me gusta 286 Compartir

Productos Programas Noticias


Inteligencia artificial Developer Circles Blog

AR/VR F8 Refresh Historias de éxito


Síguenos Herramientas para empresas Programas para empresas Videos

Videojuegos emergentes Página de Facebook for


ThreatExchange Developers
Código abierto

Publicaciones

Integraciones sociales
Ayuda Condiciones y
Ayuda para desarrolladores
políticas
Presencia social
Errores Hub de iniciativas de la
plataforma
Estado de la plataforma
Condiciones de la plataforma
Grupo de la comunidad de
Facebook for Developers Políticas para
desarrolladores
Mapa del sitio

© 2021 Información Crear Empleos Política de Cookies Condiciones Español


Facebook anuncio privacidad

You might also like