Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
Are you having problems getting Twitter to show the correct title, description or image when you or your visitors share your content?
Most problems are where Twitter doesn't show the image you've set. This is mainly due to the way Twitter 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
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:
Twitter supports images with a minimum size of 300px x 157px, an ideal ratio of 2:1, and a file size of 5MB max. 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 TWITTER: and you should see some code that looks like this:
<!-- All in One SEO 4.0.0 -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@aioseopack" />
<meta name="twitter:creator" content="@aioseopack" />
<meta name="twitter:domain" content="mydomain.com" />
<meta property="twitter:title" content="Hello world!" />
<meta property="twitter:description" content="Welcome to WordPress. This is your first post. Edit or delete it, then start writing!" />
<meta name="twitter:image" content="https://mydomain.com/wp-content/uploads/2020/08/aioseo-twitter-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 TWITTER: 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 name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@aioseopack" />
<meta name="twitter:creator" content="@aioseopack" />
<meta name="twitter:domain" content="mydomain.com" />
<meta property="twitter:title" content="Hello world!" />
<meta property="twitter:description" content="Welcome to WordPress. This is your first post. Edit or delete it, then start writing!" />
<meta name="twitter:image" content="https://mydomain.com/wp-content/uploads/2020/08/aioseo-twitter-image.jpg" />
Continue searching to see if there is any other that matches. If you find more code beginning with TWITTER: 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 TWITTER: on your post or page is from All in One SEO, then read the information below.
Caching of Images by Twitter
Each time Twitter 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 Twitter because cached information may be old and not reflect what you've set in All in One SEO.
Unfortunately the only thing you can do is to download the image you've set for Twitter, rename it and upload it back into All in One SEO.
If this doesn't work, then you'll have to wait until Twitter fetches the new information from your site.