Twitter与Facebook分享卡片无法识别Meta标签问题求助
Meta标签无法被检测工具识别的问题排查
我已在HTML头部添加所有所需Meta标签,但使用Twitter Card Validator或opengraph.dev等工具检测站点时,标签无法被识别。Twitter Card Validator日志提示:ERROR: Fetching the page failed because other errors.,不清楚问题出在哪里。
我的HTML头部代码如下:
<!-- Primary Meta Tags --> <title>Web | DASA</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="author" content="DASA"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1" /> <meta name="description" content="Web | DASA is a a full-service web design and development company that specializes in creating custom websites that are tailored to the needs and goals of our clients."> <!-- Open Graph / Facebook --> <meta property="og:type" content="website"> <meta property="og:url" content="https://dasa.rf.gd/"> <meta property="og:title" content="Web | DASA"> <meta property="og:description" content="Web | DASA is a a full-service web design and development company that specializes in creating custom websites that are tailored to the needs and goals of our clients."> <meta property="og:image" content="https://dasa.rf.gd/images/DASA_1000.png"> <!-- Google Verification --> <meta name="google-site-verification" content="DT_07_6QW8E0XDtntVY_u5nDz8OFjlgGg9lKnd6uPiU" /> <!-- Twitter --> <meta property="twitter:card" content="summary_large_image"> <meta property="twitter:url" content="https://dasa.rf.gd//"> <meta property="twitter:title" content="Web | DASA"> <meta property="twitter:description" content="Web | DASA is a a full-service web design and development company that specializes in creating custom websites that are tailored to the needs and goals of our clients."> <meta property="twitter:image" content="https://dasa.rf.gd/images/DASA_1000.png">
站点地址:https://dasa.rf.gd
可能的问题及解决方向
- URL格式错误:Twitter标签里的
twitter:url值有多余斜杠(https://dasa.rf.gd//),修正为https://dasa.rf.gd/或https://dasa.rf.gd - 图片链接不可访问:确认
https://dasa.rf.gd/images/DASA_1000.png是否能正常打开,工具抓取时图片失效会影响检测 - 主机限制爬虫请求:免费主机服务商可能会拦截检测工具的爬虫请求,导致页面抓取失败,可联系服务商确认
- HTTP状态码异常:用
curl -I https://dasa.rf.gd命令查看站点返回的状态码,若为403、500等错误,需排查服务器配置 - 防火墙/安全插件拦截:如果站点配置了CDN或安全插件,检查是否阻止了Twitter、opengraph等工具的爬虫UA
内容的提问来源于stack exchange,提问作者c.dasa
相关产品推荐
相关产品推荐

