How to Use the Facebook OpenGraph Debugger to Fix Common Errors

Last Updated on September 12, 2023 by 2 Comments

How to Use the Facebook OpenGraph Debugger to Fix Common Errors
Blog / WordPress / How to Use the Facebook OpenGraph Debugger to Fix Common Errors

The Facebook Debugger is a tool that enables you to analyze and troubleshoot OpenGraph tags for any of your pages. Using the Debugger, you can quickly zero in on the source of errors within your social media rich snippets.

Since social media, and Facebook itself, are key components in any marketing strategy, knowing how to use this tool can pay off in spades.

Letā€™s talk about the Facebook Debugger and OpenGraph!

What is OpenGraph (And How to Add Tags in WordPress)

OpenGraph refers to a collection of tags you can use to add meta data to your pages and posts. Social media platforms use those OpenGraph tags to generate the rich snippets they display to their users:

An example of a Facebook rich snippet.

If you donā€™t use OpenGraph tags, social media platforms will automatically generate snippets for your pages when you share them. However, with that approach, you lose all control over how those rich snippets look.

This means if the accompanying image doesnā€™t look good, you need to change it within WordPress. If you donā€™t like the meta description Facebook uses, youā€™ll also need to modify your content. Overall, this isnā€™t a smart approach if you want to leverage social as a traffic source.

Even this simple example requires you to add multiple OpenGraph tags in the background. For the rich snippet, you need to use the following tags:

<meta property="og:title" content="Article Title"/>
<meta property="og:description" content="Article Description"/>
<meta property="og:type" content="article"/>
<meta property="og:url" content="http://example.com/link/to/article"/>
<meta property="og:site_name" content="Site Name"/>
<meta property="og:image" content="http://example.com/image/src.jpg"/>

This example is from a previous Elegant Themes article about OpenGraph tags and how to use them (which you should read!). In a nutshell, there are two ways you can add OpenGraph tags to your content:

  1. Manually.Ā Just as with Schema markup, you can add OpenGraph tags to your pages manually. The downside is that you have to do this for every page on your website youā€™d like to share on social media.
  2. Using plugins.Ā There are a lot of plugins that generate OpenGraph tags for your content automatically. The most popular plugin option is Yoast SEO, although others can also do this.

Unfortunately, the free version of Yoast SEO doesnā€™t include rich snippet preview functionality. However, it does enable you to modify your contentā€™s OpenGraph tags using a simple editor.

IfĀ youā€™re already using Yoast SEO, taking advantage of its OpenGraph functionality is the easiest way to ensure your social media snippets look precisely the way you want them to.

Why You Should Use the Facebook Debugger for OpenGraph

The Facebook Debugger is a tool that can help you ensure your social media rich snippets work perfectly across the board. To use it, simply visit the Sharing Debugger page for Facebook Developers. Here, enter the URL for the page whose tags you want to check and click the Debug button:

The Facebook Debugger.

You donā€™t even need a Facebook account to use the Debugger. As soon as you analyze an URL, itā€™ll show you a preview of its rich snippet alongside information such as its canonical URL:

The Facebook Debugger in action.

If you scroll down further, you can analyze all of the pageā€™s OpenGraph tags:

A list of OpenGraph tags.

Keep in mind that the Facebook Debugger doesnā€™t enable you to fix errors or modify your tags directly. However, it does show you a preview of how your content will look on Facebook. More importantly, it also gives you warnings if it detects errors in your OpenGraph tags:

A warning in the Facebook Debugger.

This particular error is one of the three weā€™ll show you how to troubleshoot in the next section.

How to Use the Facebook Debugger to Fix 3 Common OpenGraph Errors

For this section, weā€™re going to rely mostly on the Facebook Debugger. However, if youā€™re using Yoast SEO, weā€™ll also show you how the plugin can help you fix a couple of OpenGraph errors. Letā€™s get to it!

1. Scrape a URL Again to Update Associated Images

One of the most common errors you may run into with OpenGraph tags is that the Facebook Debugger will show outdated featured images. This happens because it doesnā€™t update on Facebook automatically when you update a page or postā€™s associated image. When you use OpenGraph tags for images, Facebook caches those files on its end to improve performance. Consequently, if you update featured images on your end, you need to ā€œforceā€ Facebook to do the same on its side.

The easiest way to do this is to use the Facebook Debuggerā€™sĀ Scrape AgainĀ functionality. You can find this option right under When and how we last scraped the URL:

Using the Scrape Again feature.

Click on theĀ Scrape AgainĀ button and see if your pageā€™s featured image changes in theĀ Link PreviewĀ section. If it doesnā€™t, sometimes clicking the button again does the trick (not very high tech, but it works!)

Should the image fail to upload, you may be dealing with a caching issue on your website. In this case, youā€™ll want to clear your siteā€™s cache then use the Scrape AgainĀ button to force Facebook to update its image information.

2. Fix the ā€œproperties are not yet availableā€ Error

TheĀ og:imageĀ tag is what OpenGraph uses to declare what image file social media platforms should display for each page. In some cases, you might run into the ā€œog:image properties are not yet availableā€ error.

An OpenGraph image tag warning.

This means there might be a problem with your featured imageā€™s resolution. If your imageā€™s size is below 200Ɨ200, it wonā€™t work at all.

Ideally, the images you set for your social media rich snippets should be 1080 pixels wide or higher. Large featured images not only look better, but they can also help pull attention to your content on social media:

A large featured image.

If you want to read more about images and theĀ og:imageĀ tag, thereā€™s another article on the Elegant Themes blog. In a nutshell, if the Facebook Debugger returns an error related to your imageā€™s size, you can usually fix it using one of these two approaches:

  1. Update the pageā€™s featured image with a higher resolution version (and stick to using high-quality pictures from now on!).
  2. Use Yoast SEO to indicate a different image file within yourĀ og:imageĀ tag.

For Yoast SEO, you can find the option to change your ā€œFacebook imageā€ under theĀ SocialĀ tab for the post or page you want to update:

Uploading a new Facebook image.

Once you update your image or the corresponding tag, use theĀ Scrape AgainĀ button in the Facebook Debugger. The ā€œog:image properties are not yet availableā€ warning should be gone and your image should display correctly.

3. Add the MissingĀ fb:app_idĀ Property to Your Website

Letā€™s go back to a warning featured earlier in the article:

An example of a Facebook Debugger error.

This warning means there isnā€™t a Facebook App ID associated with your website. You donā€™t needĀ an app ID to share your content on social media, but it does enable you to gain access to Facebook Insights.

Given that Facebook Insights can help you to improve your marketing efforts and measure post performance, itā€™s worth a little setup time. If youā€™re interested in gaining access to those analytics, youā€™ll need to generate a Facebook App ID for your website.

Once you have the app ID, you can use Yoast SEO to add it to your pages using the fb:app_idĀ property. To do this, go to theĀ SEO > Social > FacebookĀ tab on your site and look for theĀ Facebook App IDĀ field:

Adding your Facebook app ID to WordPress using Yoast.

Add your app ID, save the changes to the pluginā€™s settings and youā€™re good to go. From now on, the Facebook Debugger shouldnā€™t return any errors related to a missing fb:app_idĀ property.

Conclusion

The Facebook Debugger is remarkably simple to use. However, some errors you might run into are hard to understand without a basic understanding of OpenGraph tags. Generally speaking, if you use a plugin such as Yoast SEO, you wonā€™t have to worry about setting up tags manually.

With the Facebook Debugger, you can quickly troubleshoot OpenGraph errors by:

  1. Scraping an URL again to update associated images.
  2. Fixing the ā€œog:image properties are not yet availableā€ error.
  3. Adding the missingĀ fb:app_idĀ property to your website.

Do you have any questions about how to use the Facebook Debugger? Letā€™s talk about them in the comments section below!

Article thumbnail image by Sergey Targasov / shutterstock.com.

Divi

Want To Build Better WordPress Websites? Start Here! šŸ‘‡

Take the first step towards a better website.

Get Started
Divi
Premade Layouts

Check Out These Related Posts

5 Unique Ways To Leverage AI In Your Web Design Workflow

5 Unique Ways To Leverage AI In Your Web Design Workflow

Posted on December 10, 2024 in WordPress

Artificial intelligence (AI) is changing how we design and develop websites in today’s digital environment. Divi AI, a powerful tool integrated into the Divi theme, offers designers and developers a treasure trove of benefits. By leveraging Divi AI, you can streamline your workflow, save...

View Full Post
WordPress Twenty Twenty-Five Review: 6.7 Features Worth It?

WordPress Twenty Twenty-Five Review: 6.7 Features Worth It?

Updated on December 9, 2024 in WordPress

WordPress recently launched its new default theme, Twenty Twenty-Five, along with WordPress 6.7. With new features and customization options, it offers more flexibility than the Twenty Twenty-Four WordPress theme. But is it worth making the switch? We put the new theme to the test and compiled this...

View Full Post

2 Comments

  1. Wonderful! Facebook Debugger is not that easy. But you did a great job man & made is easy to understand. Thanks Will.

    • Thank you for the kind words, Richard!

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Get Started With Divi