• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Draft / Update Image for URL in Twitter

Update Image for URL in Twitter

Last updated on January 11, 2019 by Sal Ferrarello

Recently, when one of my imageless posts was shared on Twitter, I added a featured image so when it is shared in the future it looks better. However Twitter caches the information for the tweet so even though I had added the image, the image was not displaying in tweets.

How to Clear the Twitter Cache

To clear information associated with a shared URL, I did the following.

Step 1: Go to the Twitter Card Validator

I went to https://cards-dev.twitter.com/validator

Step 2: Enter the URL

Then I entered my URL https://salferrarello.com/functions-plugin-mu-plugin-wordpress/

Screenshot of Twitter Card Validator with my URL.

Step 3: Click Preview Card

After clicking Preview Card, the rendered Twitter Card (with image) was displayed.

Screenshot of Twitter Card Preview.

Why are Featured Images Important

Featured images (with the help of the Yoast SEO Plugin) populate the Twitter Card when a URL is shared on Twitter, which significantly improves the appearance of the tweet.

Why Do I Have Imageless Posts

I’ve started publishing draft blog posts. Since adding featured images is typically the last thing I do, these draft blog posts generally do not have featured images.

Sal Ferrarello
Sal Ferrarello (@salcode)
Sal is a PHP developer with a focus on the WordPress platform. He is a conference speaker with a background including Piano Player, Radio DJ, Magician/Juggler, Beach Photographer, and High School Math Teacher. Sal can be found professionally at WebDevStudios, where he works as a senior backend engineer.

Share this post:

Share on TwitterShare on FacebookShare on LinkedInShare on EmailShare on Reddit
Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Draft, Solution Tagged With: Twitter

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in