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.
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
- Go to developers.facebook.com/tools/debug
- Paste your URL into the input field
- Click "Debug" to see current cached data
- Click "Scrape Again" to force Facebook to re-fetch your OG tags
- 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 Message | Cause | Solution |
|---|---|---|
| "Could not retrieve data" | URL not accessible | Check URL is public and not password-protected |
| "Image too small" | Image under 200×200px | Use images at least 200×200px (recommended 1200×630px) |
| "Missing required property" | Missing OG tags | Add og:title, og:description, og:image, og:url |
| "Redirect warning" | URL redirects | Use the final canonical URL |
| "Invalid image URL" | Non-HTTPS or relative URL | Use absolute HTTPS URL |
Refreshing LinkedIn Cache
LinkedIn provides the Post Inspector tool for debugging and refreshing OG tags:
Step-by-Step: LinkedIn Post Inspector
- Go to linkedin.com/post-inspector
- Paste your URL
- Click "Inspect"
- Review the fetched OG data
- 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:
- Try cards-dev.twitter.com/validator
- Enter your URL
- 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
- Query Parameters: Add
?slack=1or any unique parameter to the URLhttps://yoursite.com/page?slack=1 - Time-based method: Wait 24 hours for automatic refresh
- 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
- Query parameters: Append
?discord=1to URL - Wait: Cache typically refreshes within 24 hours
- 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=1to 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
- Open Telegram and search for @WebpageBot
- Send your URL to the bot
- The bot will fetch and preview your OG tags
- 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=1for 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
- Test before publishing: Use our OG Preview Tool to verify tags before going live
- Use staging URLs: Test OG tags on staging environment first
- Validate with debuggers: Run through Facebook Debugger and LinkedIn Inspector before sharing
- Version your images: Use versioned image URLs like
og-image-v2.jpg - 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-revalidateTroubleshooting 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
- Use Facebook's Graph API
- Send POST request to invalidate cache programmatically
- 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.0Quick Reference: Debugging Tools
| Platform | Tool Name | URL |
|---|---|---|
| Sharing Debugger | developers.facebook.com/tools/debug | |
| Post Inspector | linkedin.com/post-inspector | |
| Twitter/X | Card Validator (deprecated) | cards-dev.twitter.com/validator |
| Telegram | @WebpageBot | Search in Telegram app |
| Slack | No official tool | Use query parameters |
| Discord | No official tool | Use 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