Refresh Social Card Caches

3 min

The problem

Social platforms cache link previews for performance. When you update your ogli.sh link's image or text, platforms might still show the old preview.

1) Use platform debug tools

Facebook/Meta (Instagram, WhatsApp, Messenger)

  1. Go to Facebook Sharing Debugger
  2. Paste your ogli.sh link
  3. Click "Debug"
  4. Click "Scrape Again" to refresh cache

Twitter/X

  1. Go to Twitter Card Validator
  2. Paste your ogli.sh link
  3. Click "Preview card"
  4. Cache refreshes automatically

LinkedIn

  1. Go to LinkedIn Post Inspector
  2. Paste your ogli.sh link
  3. Click "Inspect"
  4. Cache updates immediately

2) Change your image URL

The most reliable method - add a version parameter:

# Update your link with versioned image URL
curl -X PATCH https://api.ogli.sh/link/YOUR_LINK_ID \
  -H "Authorization: Bearer $OGLI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ogImage": "https://cdn.example.com/image.jpg?v=2"
  }'

3) Re-share your link

Platform cache duration

Pro tips

Quick debug URLs


← Back to all how-tos