Individual Facebook sharing doesn’t work when caching is on

­

The fix assumes you are using the W3 Total Cache plugin. The problem happens because the cache is created for human visitors and not for Facebook. The Faceboot bot inspects the page and finds the image to be shared along with its description using Open Graph tags. Justified Image Grid sets up a slightly different version of the page to accommodate the requirements of the Facebook bot (only when a deeplinked lightbox URL is in question).

Solution A: create a different cache for Facebook
  1. Go to W3 Total Cache settings (Performance) > User Agent Groups page.
  2. While you are at it, tick Enabled for the predefined groups there. This solves the Mobile specific settings have no effect problem too.
  3. Click the Create a group button at the top.
  4. Enter Facebook as the group name.
  5. Add this to the User agents field:
  6. Click the Save all settings button.
Solution B: reject caching for Facebook
  1. Find the W3 Total Cache settings (Performance) > Page cache > Advanced section > Rejected user agents setting.
  2. Add this as value:
  3. Click the Save all settings button.
Further information:
Helpful?  Yes  No 0% found this satisfactory.
This troubleshooting fix was posted in Lightboxes on June 17, 2015