RSS para 66 redes sociais: Facebook, Instagram, X, LinkedIn, Telegram e mais Blog Afiliado Contatos
Entrar Começar grátis
Updated: 2026-09-29
Como postar um link no Facebook com miniatura de imagem grande

Today I will show you how to fetch facebook Open Graph (OG) meta tags with php script. Open Graph meta tags are used in html page of website to generate previews of content. When your page is shared on facebook it will capture the og meta tags and generate the snippet. Meta tags are added inside the head tag.

Meta Keywords & Their Representation

The core Open Graph tags Facebook reads when generating a link preview are:

  • og:title – The title of your article, excluding any branding.
  • og:site_name – The name of your website.
  • og:url – The canonical URL of the page.
  • og:description – A detailed description of the piece of content.
  • og:image – The image Facebook displays in the preview thumbnail.

As an example, the following is the Open Graph protocol:

<html prefix="og: http://ogp.me/ns#">
<head>

<meta property="og:title" content="Post title" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://postrss.com" />
<meta property="og:image" content="https://postrss.com/wp-content/uploads/2014/01/mainslide1.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
...
</head>
...
</html>

Note: og:type must be a value from Facebook’s approved list — common choices are website, article, or product. Custom text like “News Site” isn’t a valid type and will be ignored by Facebook’s parser.

Getting the “Large Image” Thumbnail Specifically

Adding an og:image tag alone doesn’t guarantee the large thumbnail layout — Facebook decides between a large image card and a small square thumbnail based on your image’s dimensions and aspect ratio. To reliably get the large format:

  • Use an image at least 1200 × 630 pixels (this is Facebook’s recommended size for the large-card layout).
  • Keep the aspect ratio close to 1.91:1 — images far outside this ratio may get cropped unpredictably.
  • Include explicit og:image:width e og:image:height tags so Facebook’s crawler doesn’t have to download the image just to measure it.
  • Make sure the image file itself is reachable over HTTPS and isn’t blocked by robots.txt.

Testing Your Open Graph Tags

Facebook caches the OG data it reads for a URL, so if you change your tags after the page has already been shared once, the old preview can keep showing. Use the Facebook Sharing Debugger to paste in your URL, see exactly which OG tags Facebook detected, and force it to re-scrape the page for an updated preview.

How This Applies to Automated Posting

When PostRSS auto-posts a new article from your RSS feed to Facebook, it relies on your page’s own OG tags (or the image embedded in your feed item) to determine the thumbnail shown. Setting up correct og:image, og:image:width, and og:image:height tags on your website — using the guidance above — is what ensures automated posts also show the large-thumbnail format rather than a small or missing preview.

X setup is documented separately on our RSS to Twitter page.

If Facebook is the destination you care about, our Facebook auto poster page covers that setup on its own.

A Quick Checklist Before You Automate

Automated posting repeats whatever your pages and feed provide, so it is worth checking one or two recent articles before you connect a feed. Open a post, view its source and confirm that:

  • there is exactly one og:image tag, and it points to the article’s own picture rather than a site-wide logo;
  • the image is at least 1200 × 630 pixels, close to 1.91:1, and loads over HTTPS;
  • og:title e og:description contain the article’s own title and summary, not the homepage text;
  • the Sharing Debugger shows the large card for that URL.

On WordPress, these tags usually come from your SEO plugin or theme, so fixing the template once fixes every future post.

Where PostRSS Finds the Picture

PostRSS looks for an image in the feed item first: an enclosure, a media:content tag or the first image inside the item. When the feed carries no picture, it reads the Open Graph tags of the linked page. Either way, the result is a post with the real article image instead of a bare link. PostRSS posts to Facebook Pages only, since Meta closed publishing for Groups and personal profiles, and a Facebook Page is available on every plan, including Free. The full list of options is on the features page.

Frequently Asked Questions

Why does my Facebook post still show the old image after I changed it?

Facebook caches OG data per URL. Run the URL through the Facebook Sharing Debugger and click “Scrape Again” to force a refresh.

What’s the minimum image size Facebook will accept?

Facebook’s documented minimum is 200 × 200 pixels, but anything that small will only ever render as a small thumbnail, never the large-card layout.

Do I need og:image:width and og:image:height, or is og:image enough?

og:image alone works, but adding the width/height tags lets Facebook’s crawler skip downloading the image to measure it, which makes your preview render faster and more reliably.

Does the same og:image also control the preview on other platforms?

Most major platforms, including LinkedIn and Discord, read the same Open Graph tags Facebook uses, so a correctly sized og:image typically produces a good preview across all of them. X (Twitter) is the one common exception — it primarily reads its own twitter:card e twitter:image tags instead, so if you want a large image preview there too, add those tags alongside your Open Graph tags rather than relying on og:image alone.

New guides, once a month

What changed in the networks, what broke, and how to fix it before it costs you reach.

We send a confirmation e-mail first. Unsubscribe any time.
PostRSS - Automação de feeds RSS e postagem automática
Visão Geral de Privacidade

Este site utiliza cookies para que possamos proporcionar a melhor experiência de usuário possível. As informações de cookies são armazenadas no seu navegador e desempenham funções como reconhecê-lo ao retornar ao nosso site e ajudar nossa equipe a entender quais seções do site você considera mais interessantes e úteis.