Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
Are you having problems getting Facebook to show the correct title, description or image when you or your visitors share your content?
Most problems are where Facebook doesn't show the image you've set. This is mainly due to the way Facebook works when it first sees your content.
Here we'll look at some steps you can follow to troubleshoot what's wrong.
In This Article
Tutorial Video
IMPORTANT:
Before starting, make sure you deactivate ALL performance plugins or any plugin that does caching and/or minification. Then log into your site as an Administrator and visit the post or page on your website you want to troubleshoot.
NOTE:
Facebook supports images with a minimum size of 200px x 200px, an ideal ratio of 1.91:1, and a file size of 5MB max. (eg: 1640px x 856px or 3280px x 1712px for retina screens). The image should be in JPG, PNG, WEBP, and GIF formats only.
Verify What's Output by All in One SEO
The first thing to check is whether the information you set in All in One SEO is being displayed in the source code of your content. Here's how to check this.
On the post or page that's having the problem, right click anywhere on the page and select View Page Source.
You should now see the source code for your post or page. Search the source code for OG: and you should see some code that looks like this:
<!-- All in One SEO 4.0.0 -->
<meta property="og:site_name" content="My WordPress Site Name" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Hello world!" />
<meta property="og:description" content="Welcome to WordPress. This is your first post. Edit or delete it, then start writing!" />
<meta property="og:url" content="http://mydomain.com/hello-world/" />
<meta property="og:image" content="https://mydomain.com/wp-content/uploads/2020/08/aioseo-facebook-image.jpg" />
This is the information that All in One SEO outputs based on your settings.
If it matches what you set, then move on to the next check.
If it doesn't match what you set, then contact us for support making sure to provide the URL for the post or page you're having problems with.
Check for Duplicate and Conflicting Information
The next thing to check is whether you have more than one set of information in the source code of your post or page.
All in One SEO is not the only plugin to output the code used by social media sites. Many other plugins and themes output this information as well, which leads to conflicting and duplicate information.
On the post or page that's having the problem, right click anywhere on the page and select View Page Source.
You should now see the source code for your post or page. Search the source code for OG: and you should see code directly beneath a line that says All in One SEO like this:
<!-- All in One SEO 4.0.0 -->
<meta property="og:site_name" content="My WordPress Site Name" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Hello world!" />
<meta property="og:description" content="Welcome to WordPress. This is your first post. Edit or delete it, then start writing!" />
<meta property="og:url" content="http://mydomain.com/hello-world/" />
<meta property="og:image" content="https://mydomain.com/wp-content/uploads/2020/08/aioseo-facebook-image.jpg" />
Continue searching to see if there is any other that matches. If you find more code beginning with OG: then you have duplicate / conflicting information that is coming from your theme or another plugin.
You can use a process of elimination to figure out where the other code is coming from by changing your theme and deactivating each plugin one at a time and checking to see if the code goes away. You can use the Health Check & Troubleshooting plugin to test this without affecting what your site visitors see.
If the code goes away after switching your theme then you know your theme is causing the problem.
If the code goes away after deactivating one of your plugins then you know that plugin is causing the problem.
If the only code matching OG: on your post or page is from All in One SEO, then move on to the next check.
Using the Facebook Debug Tool to Clear Cached Information
Each time Facebook sees your content, it caches information about it for seven days. They use what they have in their cache when your content is shared.
This is the #1 most common cause of problems with sharing on Facebook because cached information may be old and not reflect what you've set in All in One SEO.
Follow these steps to clear the cached information that Facebook has for your post or page.
On the post or page that's having the problem, click the SEO menu item in the WordPress Toolbar that runs across the top of your site, then click on Analyze this page » Facebook Debugger.
A new tab should open the Facebook Sharing Debugger. Click the button that says Fetch new information.
You may see a button that says Scrape Again. If you do, click that button.
You should see a table and in one of the rows it will say Link Preview. The image, title and description should match what you've set on your post or page.
If the Link Preview doesn't match what you've set on your post or page, then you may have to click the Scrape Again button a few times to get it to work.
If it still doesn't work, then you'll have to wait until Facebook fetches the new information from your site.