{"id":5502,"date":"2023-06-09T10:57:07","date_gmt":"2023-06-09T10:57:07","guid":{"rendered":"https:\/\/forest-1041a2.ingress-bonde.ewp.live\/how-to-clear-the-twitter-card-cache-to-show-the-right-image\/"},"modified":"2023-06-09T10:57:07","modified_gmt":"2023-06-09T10:57:07","slug":"how-to-clear-the-twitter-card-cache-to-show-the-right-image","status":"publish","type":"post","link":"http:\/\/benrmatthews.local\/how-to-clear-the-twitter-card-cache-to-show-the-right-image\/","title":{"rendered":"How to clear the Twitter Card cache to show the right image"},"content":{"rendered":"

"Twitter<\/p>\n

Have you ever tried to share a news story from your site to Twitter and realised there is no picture being pulled through to the Twitter Card?<\/p>\n

Twitter might have added the wrong image or you might have forgot to add an image and added after publication. Or perhaps the headline has changed and the Twitter preview shows an earlier version.<\/p>\n

(A Twitter Card is the rich content that is automatically attached to tweets).<\/p>\n

Here is how to clear the Twitter Card cache to make sure the right image pulls through<\/p>\n

1. Make sure the first image (or the featured image) is the one you want to show in the Twitter Card<\/p>\n

"Twitter<\/p>\n

2. Head to the Twitter Card Validator: https:\/\/cards-dev.twitter.com\/validator (You\u2019ll need a Twitter account and be logged in on Twitter to use this tool)<\/p>\n

3. Enter the article or blog post url that you want to tweet<\/p>\n

4. You will see a preview of the Twitter Card, which should now show the correct image<\/p>\n"Twitter\n

There’s a similar tool for Facebook here, called the Facebook Debugger: https:\/\/developers.facebook.com\/tools\/debug\/<\/p>\n

That’s all you need to know to clear the Twitter Card cache and show the right image, so you’ll never show an outdated image again.<\/p>\n","protected":false},"excerpt":{"rendered":"

Have you ever tried to share a news story from your site to Twitter and realised there is no picture being pulled through to the Twitter Card? Twitter might have added the wrong image or you might have forgot to add an image and added after publication. Or perhaps the headline has changed and the […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-5502","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"http:\/\/benrmatthews.local\/wp-json\/wp\/v2\/posts\/5502"}],"collection":[{"href":"http:\/\/benrmatthews.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/benrmatthews.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/benrmatthews.local\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/benrmatthews.local\/wp-json\/wp\/v2\/comments?post=5502"}],"version-history":[{"count":0,"href":"http:\/\/benrmatthews.local\/wp-json\/wp\/v2\/posts\/5502\/revisions"}],"wp:attachment":[{"href":"http:\/\/benrmatthews.local\/wp-json\/wp\/v2\/media?parent=5502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/benrmatthews.local\/wp-json\/wp\/v2\/categories?post=5502"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/benrmatthews.local\/wp-json\/wp\/v2\/tags?post=5502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}