Tutorial: Learn how to test Open Graph Tags now! 🤔

In this tutorial, we’ll take a look at several options that cover how to test Open Graph Tags (OGP tags).

These Open Graph validation tools are free to use and available online and include the Facebook Sharing Debugger, the LinkedIn Post Inspector, and the Twitter Card Validator; the OpenGraph.xyz website aggregates these three tests and adds additional testing for Discord and can be helpful when checking social media meta tags on your website.

Note that this list of validators may expand over time as there are many websites and applications that support OGP tags.

Open Graph Testing TOC

This article was last updated on March 10, 2025 — see the Open Graph Tutorial category for other articles that can help boost your website’s social media presence.

TODO

Open Graph Testing Tool Options

The following list contains several OpenGraph validator tools that are useful when developing webpages that implement Open Graph tags.

OpenGraph Testing with the Facebook Sharing Debugger

Since Open Graph meta tags were developed by Facebook, this is arguably the best place to start your Open Graph testing using the Facebook Sharing Debugger (FSD).

The first step when testing with the FSD is to add the target page URL in the text field indicated by the red arrow below.

The Facebook for Developers Sharing Debugger with a pointer to the target URL text box.
The Facebook for Developers Sharing Debugger can be used to debug the URL as it pertains to Facebook and the Open Graph Meta Tags present on that rich object.

Below we can see the result of testing the Open Graf tags using the Facebook For Developers Sharing Debugger.

The results of running the Facebook Open Graph testing tool on a webpage.
Test that uses the Facebook Sharing Debugger to determine if the Open Graph tags that have been added to a webpage have been done so correctly.

We can opt to ignore any warnings that have been identified however we need to fix any errors that were uncovered.

OpenGraph Testing with the LinkedIn Post Inspector

LinkedIn provides its own tool for testing OGP tags called the LinkedIn Post Inspector (LPI).

If you’re posting content on LinkedIn and would like to see how the social media platform unfurls a link that’s been enhanced by OGP tags, check this OGP testing tool out.

Below I’ve included the landing page for the LinkedIn Open Graph test tool website.

LinkedIn Post Inspector Open Graph testing tool landing page with a URL set to the article regarding how to use Open Graph tags on a website.
The LinkedIn Post Inspector Open Graph testing tool.

The image below demonstrates the results of the LPI test.

The LinkedIn Post Inspector Open Graph Test Tool Results Page.
LinkedIn Post Inspector Open Graph Test Tool Results Page.

The publish date at the bottom in red appears to not be found after the OG validation has been completed — we should endeavor to fix this and any other errors that have been identified.

Open Graph Testing with the Twitter Card Validator and Twitter Tweet Composer

The Twitter Card Validator is another debugger that is available for testing purposes however if you want to see the preview image you’ll need to use the Twitter Tweet Composer for this step.

In fact, one could start with the Tweet Composer first if they want and then use the Twitter Card Debugger if there’s an issue unfurling the URL.

The Twitter Card Validator will check for both Twitter Card metadata and if these tags do not exist, it will test for the presence of OGP tags and validate using those.

Below we can see the Twitter Card Validator including a URL to the article that addresses how to fix the og:image Open Graph meta tags are missing critical error.

The result of a Twitter Card Validator OGP test with a pointer to text that reads 'Twitter Card Preview has moved to Tweet Composer'.
The result of a Twitter Card test with a pointer to text that reads "Twitter Card Preview has moved to Tweet Composer".

The Twitter Tweet Composer is a feature on Twitter that allows users to create and post tweets.

The Twitter Tweet Composer has a simple interface where you can type your message, add images, videos, GIFs, polls, or location tags, and then share it with your followers.

I’ve included on the right side of this page a copy of the Tweet preview from the Twitter Tweet Composer.

This page contains both Twitter Cards as well as Open Graph Protocol Tags (OGP tags).

This is important because Twitter will use the Twitter Cards first and, if they’re not present, it will look for the OGP tags and use those if they’re present on the page.

Twitter Tweet Composer preview of the unfurled URL to the article entitled 'Learn how to test open graph tags now!'.
Twitter Tweet Composer preview of the unfurled URL to the article entitled "Learn how to test open graph tags now!".

In the next example, we’ll cover a website that allows the content engineer to run several of these tests at once.

Open Graph Preview

A review of the Open Graph Preview tool appears below — this is working at the date of this testing (30.Oct.2024).

See also this post on X (Twitter).

Open Graph Link Preview Landing Page

The following landing page is the entry point for the OpenGraph Preview tool.

Add the target URL and smash that “Preview” button and the test will commence.

The Open Graph Preview landing page entry point for running an Open Graph test -- the user enters the target URL and smashes the "Preview" button.
The Open Graph Preview testing tool.

Open Graph Link Preview: Facebook Preview

The first test result the OpenGraph Preview service will deliver is for Facebook.

The Open Graph Preview OGP testing tool results for Facebook which demonstrates that the image, website URL, article title, and article description are displayed correctly.
The Open Graph Preview test tool results for Facebook.

Open Graph Link Preview: X / Twitter Preview

The next test result that the Open Graph Preview tool delivers pertains to X (Twitter).

The Open Graph Preview results for X (Twitter) where we can see the image, site URL, title, and description when the URL is unfurled.
Open Graph Preview X (Twitter) test results.

Open Graph Link Preview: Slack Preview

The next test result that the Open Graph Preview tool delivers pertains to Slack.

Slack preview of the unfurled URL to the article entitled 'What are OGP Tags? Find out now!'.
Slack preview of the unfurled URL to the article entitled 'What are OGP Tags? Find out now!'.

Open Graph Link Preview: LinkedIn Preview

The next test result that the Open Graph Preview tool delivers pertains to the LinkedIn professional social network.

The Open Graph Preview result for LinkedIn Open Graph tags which includes the image, title, and website URL.
Open Graph Preview: LinkedIn Test Result.

Open Graph Link Preview: Discord Preview

The next test result that the Open Graph Preview tool delivers pertains to Discord.

The Open Graph Preview Open Graph meta tags result for Discord that includes the site title, article title, article meta description, and article image.
Open Graph Preview: Discord Test Result.

Open Graph Link Preview: Show Debug Details

Finally, we can investigate the Open Graph meta tags and Twitter Card data by clicking on the OpenGraph Preview “Show debug details” link.

The link to the 'Show debug details' information page in the Open Graph Preview testing service.
Open Graph Preview: Show Debug Details Link.

Open Graph Link Preview: Debug Details One

Below we can see the first debug details result page for the OpenGraph Preview service.

Open Graph Preview Tool: Show Debug Details (panel two) which contains the OpenGraph and Twitter Card JSON.
Open Graph Preview Tool: Show Debug Details (panel two).

Open Graph Link Preview: Debug Details Two

Finally, we can see the second debug details result page for the OpenGraph Preview service below.

Open Graph Preview Tool: Show Debug Details (panel one) which contains the 200 (OK) response code along with response headers as JSON.
Open Graph Preview Tool: Show Debug Details (panel one).

Open Graph validation with opengraph.xyz

The OpenGraph.xyz website aggregates Facebook Sharing Debugger, LinkedIn Post Inspector, Twitter Card Validator, and Discord testing such that they can be conveniently executed in parallel from a single place.

The OpenGraph XYZ landing page with a link to this page has already been added -- when the user clicks the 'Check Website' button the Open Graph testing will be executed.
Open Graph.XYZ helps test several several websites that support OGP tags concurrently.

Social Share Preview

The Social Share Preview solution offers aggregated testing options for Facebook, X.com (previously Twitter), LinkedIn, and a simplified rich pin check for Pinterest.

The Social Share Previews website also offers a browser extension for testing in an offline environment, which I cover in a separate article on how to test Open Graph tags on your own machine.

Using the Social Share Previews website is as easy as entering the URL to the webpage you need to test and then checking the results.

The first step, where I’ve added the URL to another article on this website, appears here:

Social Media Share Previews step one: Pointer to where we add the URL to the page you need to test.
Step one of the Social Share Preview website requires us to add the target URL.

Once the Social Media Share Preview application has tested the page, we will then see results that look like what I have here.

Note that in this image we have options for testing Facebook, which is the default, and we can also choose to review test results for X (Twitter), LinkedIn, and Pinterest.

Social Media Share Preview step two (A): Review the results of the test, which defaults to the Facebook preview.
Social Share Preview step two (A): Check the test results for Facebook.

Included below is the expanded results for the Facebook social media platform Social Share Previews test.

Social Share Preview step two (B): We can see the title, description, and image test results for Facebook here; the title has been flagged as long at 68 characters (where 90 characters is the maximum allowed).
Social Share Preview Step Two (B): Review the test results for the title, description, and image.

This concludes my short review of the Social Media Share Preview web service, the tutorial conclusion follows.

Conclusion

Many applications and websites support Open Graph meta tags and this list of validators and debuggers may be updated periodically if I find other tools that should be listed here.

Tutorial References And Other Articles

  1. What are OGP Tags?
  2. Learn how to use Open Graph tags on a website here.
  3. Ideas to test OpenGraph locally are included here.
  4. What is the Open Graph Title? Find out here!
  5. Learn about the Open Graph URL here. 
  6. I have an article that covers how to remedy the “some opengraph meta tags are missing” AIOSEO error.
  7. This article covers steps for what to do when the  WhatsApp OG image is not showing up properly.
author avatar
ThosPFuller
I am a software engineer based in Northern Virginia (USA) and this website focuses on content engineering, web development, Technical SEO, Search Engine Optimization (SEO).

Leave a Reply