Troubleshooting Problems With Sharing Content on Twitter

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.

In this article, we’ll look at some steps you can follow to troubleshoot what’s wrong:

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.

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.

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.

In this article, we'll look at some steps you can follow to troubleshoot what's wrong:

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 3.8 -->
<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 3.8 -->
<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.

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 move on to the next check.

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.