You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WordPress站点链接分享无法显示预览,已尝试多方法仍未解决求方案

Hey there, sorry to hear you're still stuck with this frustrating preview issue even after trying the common fixes—let's walk through some additional troubleshooting steps that often resolve this:

  • Clear all layers of cache
    Server-side cache, CDN cache (like Cloudflare), and WordPress plugin cache (e.g., WP Rocket, W3 Total Cache) can all serve outdated OG tag data to Facebook's crawler. Make sure to flush every cache layer, then re-run the Facebook OpenGraph debugger and click "Scrape Again" to force a fresh fetch.

  • Validate your OG tag details thoroughly
    Even with Yoast SEO, double-check these critical tags:

    • og:url must be a full, absolute URL (matching the exact link you're sharing, including HTTP/HTTPS and www/non-www prefixes)
    • og:image needs to meet Facebook's requirements: minimum 1200x630px resolution, file size under 8MB, and accessible to Facebook's crawler (no hotlink protection blocking the facebookexternalhit/1.1 user-agent)
    • Ensure og:title and og:description aren't empty or overly long (Facebook truncates descriptions after ~300 characters)
  • Check your robots.txt and crawler access
    Open your site's robots.txt file (e.g., yoursite.com/robots.txt) and make sure there's no rule blocking Facebook's crawler. Avoid lines like:

    Disallow: /
    

    Or specific blocks targeting facebookexternalhit. You can also use Facebook's debugger's "See exactly what our scraper sees" feature to confirm the crawler can access your page content.

  • Verify WordPress core URL settings
    Go to Settings > General in your WordPress dashboard. Ensure "WordPress Address (URL)" and "Site Address (URL)" match exactly (same HTTP/HTTPS protocol, same www/non-www prefix). Mismatches here can cause OG tag URLs to be incorrect, breaking previews entirely.

  • Test for plugin or theme conflicts
    Temporarily disable all plugins except Yoast SEO, switch to a default WordPress theme (like Twenty Twenty-Four), then try sharing the link again. If the preview works, re-enable plugins one by one to find the conflicting tool. Some security plugins, custom SEO add-ons, or even performance plugins can interfere with OG tag output.

  • Check for unexpected redirects
    Use a status code checker to ensure your page returns a 200 OK response. Facebook's crawler struggles with multiple 301/302 redirects or broken links. If your page redirects to another URL, make sure the target page also has proper OG tags set up.

  • Force Yoast to be the sole OG tag provider
    Some themes or plugins might output duplicate OG tags, causing Facebook to pick the wrong ones. In Yoast SEO's settings, go to SEO > Social > Facebook and confirm the "Add Open Graph meta data" option is enabled. Then, check your theme's functions.php file for any custom OG tag code and remove it if present.

内容的提问来源于stack exchange,提问作者Mary Maggie OBrien

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 04:16:07