🔄

How to Refresh Open Graph Cache

Force social media platforms to update your cached Open Graph tags and see your changes immediately with these debugging tools and techniques.

📅 Updated December 2025⏱️ 7 min read

Why Social Platforms Cache OG Tags

When you share a link on social media, platforms like Facebook, LinkedIn, and Twitter cache (store) your Open Graph tags to improve performance. Instead of fetching your OG tags every time someone shares your link, they use the cached version.

The problem: If you update your OG tags, the cached version doesn't automatically refresh. This means your old title, description, or image may continue to appear even after you've made changes.

⚡ Quick Solution

Use the platform-specific debugging tools below to force a cache refresh. Each platform provides a free tool that re-scrapes your page and updates the cached OG tags.

Refreshing Facebook Cache

Facebook has the most aggressive caching (sometimes weeks or months). Use the Facebook Sharing Debugger:

Step-by-Step: Facebook Sharing Debugger

  1. Go to developers.facebook.com/tools/debug
  2. Paste your URL into the input field
  3. Click "Debug" to see current cached data
  4. Click "Scrape Again" to force Facebook to re-fetch your OG tags
  5. Verify the new data appears in the preview

Direct URL format:

https://developers.facebook.com/tools/debug/?q=https://yoursite.com/page

Common Facebook Debugger Errors

Error MessageCauseSolution
"Could not retrieve data"URL not accessibleCheck URL is public and not password-protected
"Image too small"Image under 200×200pxUse images at least 200×200px (recommended 1200×630px)
"Missing required property"Missing OG tagsAdd og:title, og:description, og:image, og:url
"Redirect warning"URL redirectsUse the final canonical URL
"Invalid image URL"Non-HTTPS or relative URLUse absolute HTTPS URL

Refreshing LinkedIn Cache

LinkedIn provides the Post Inspector tool for debugging and refreshing OG tags:

Step-by-Step: LinkedIn Post Inspector

  1. Go to linkedin.com/post-inspector
  2. Paste your URL
  3. Click "Inspect"
  4. Review the fetched OG data
  5. LinkedIn automatically clears cache when you inspect a URL

⚠️ LinkedIn Caching Note

LinkedIn's cache is particularly aggressive. After updating OG tags, you may need to wait 24-48 hours even after using the inspector. For immediate updates, try appending a query parameter like ?v=2 to create a "new" URL.

Refreshing Twitter (X) Cache

Twitter has deprecated their Card Validator, but the cache still refreshes automatically in most cases:

Twitter Cache Behavior

  • Automatic refresh: Twitter typically updates cache within 7 days
  • No official tool: The Card Validator was sunset in 2023
  • Workaround: Use query parameters like ?v=1, ?updated=2025-12-16

Alternative: Twitter Card Validator (Legacy)

While officially deprecated, the old validator sometimes still works:

  1. Try cards-dev.twitter.com/validator
  2. Enter your URL
  3. Click "Preview card"

Refreshing Slack Cache

Slack doesn't provide a public debugging tool, but you can force a refresh:

Methods to Clear Slack Cache

  1. Query Parameters: Add ?slack=1 or any unique parameter to the URL
    https://yoursite.com/page?slack=1
  2. Time-based method: Wait 24 hours for automatic refresh
  3. Contact support: For urgent needs, contact Slack support to manually clear cache

💡 Pro Tip: Cache-Busting Query Parameters

For platforms without debugging tools (Slack, Discord, WhatsApp), add query parameters to create a "new" URL that hasn't been cached yet:

  • ?v=2
  • ?updated=2025-12-16
  • ?refresh=true

Make sure your OG tags use the canonical URL without these parameters!

Refreshing Discord Cache

Discord has no official cache refresh tool, but there are workarounds:

Discord Cache Refresh Methods

  1. Query parameters: Append ?discord=1 to URL
  2. Wait: Cache typically refreshes within 24 hours
  3. Delete and repost: Delete the message and post the link again with a query parameter

Refreshing WhatsApp Cache

WhatsApp doesn't provide a debugging tool, but you can use these approaches:

WhatsApp Cache Strategies

  • Query parameters: Add ?wa=1 to create a fresh URL
  • Automatic refresh: WhatsApp typically updates within 7 days
  • File size critical: Ensure OG image is under 300KB (WhatsApp's strict limit)

Refreshing Telegram Cache

Telegram provides the Instant View bot for debugging:

Using Telegram's Instant View Bot

  1. Open Telegram and search for @WebpageBot
  2. Send your URL to the bot
  3. The bot will fetch and preview your OG tags
  4. This also refreshes Telegram's cache

Refreshing iMessage Cache

Apple iMessage has limited control over cache:

  • No official tool: Apple doesn't provide a debugging interface
  • Query parameters: Use ?ios=1 for cache busting
  • Long cache: iMessage cache can persist for weeks
  • User-level clear: Recipients may need to clear their iMessage cache (reboot device)

Preventing Cache Issues

The best way to deal with cache issues is to prevent them in the first place:

Best Practices

  1. Test before publishing: Use our OG Preview Tool to verify tags before going live
  2. Use staging URLs: Test OG tags on staging environment first
  3. Validate with debuggers: Run through Facebook Debugger and LinkedIn Inspector before sharing
  4. Version your images: Use versioned image URLs like og-image-v2.jpg
  5. Set proper cache headers: Use long cache times for OG images (1 year+) once finalized

Cache-Control Headers (Optional)

While social platforms ignore cache headers for OG tags, you can set them for your images:

# Good for finalized images
Cache-Control: public, max-age=31536000, immutable

# For images you might change
Cache-Control: public, max-age=604800, must-revalidate

Troubleshooting Checklist

If your OG tags still aren't updating after clearing cache:

Clearing Cache for Multiple URLs

If you need to refresh many URLs at once (site-wide OG image update, for example):

Facebook Batch Invalidator

  1. Use Facebook's Graph API
  2. Send POST request to invalidate cache programmatically
  3. Requires Facebook App setup and access token

Scripted Approach

Create a script to hit each platform's debugger API:

const urls = ['url1', 'url2', 'url3'];

for (const url of urls) {
  // Facebook
  await fetch(`https://graph.facebook.com/?id=${url}&scrape=true`, {
    method: 'POST'
  });
  
  // LinkedIn (requires manual inspection)
  // No API available
  
  await delay(1000); // Rate limiting
}

Monitoring Cache Status

Track when platforms last fetched your OG tags:

  • Server logs: Monitor User-Agent for social media bots
  • Facebook Debugger: Shows "Time Scraped" timestamp
  • Analytics: Track referrals from social platforms

Social Media Bot User-Agents

Facebookexternalbot/1.1 (+http://www.facebook.com/externalhit_uatext.php)
LinkedInBot/1.0 (compatible; Mozilla/5.0; +http://www.linkedin.com)
Twitterbot/1.0
Slackbot-LinkExpanding 1.0 (+https://api.slack.com/robots)
TelegramBot (like TwitterBot)
WhatsApp/2.0

Quick Reference: Debugging Tools

PlatformTool NameURL
FacebookSharing Debuggerdevelopers.facebook.com/tools/debug
LinkedInPost Inspectorlinkedin.com/post-inspector
Twitter/XCard Validator (deprecated)cards-dev.twitter.com/validator
Telegram@WebpageBotSearch in Telegram app
SlackNo official toolUse query parameters
DiscordNo official toolUse query parameters

Additional Resources

Test Before You Share

Avoid cache headaches by testing your Open Graph tags before sharing. See previews for all major platforms instantly.

Preview Your OG Tags Now