dsjhejw3232 2017-03-06 14:13
浏览 210

如何修复'无法渲染卡预览'推特错误?

I am trying to implement twitter share on my site. For this i have added these meta tags:

<meta property="twitter:card" content="summary_large_image"/>
<meta property="twitter:site" content="@abc"/>
<meta property="twitter:title" content="dummy text"/>
<meta property="twitter:description" content="dummy text"/>
<meta property="twitter:url" content="http://example.com/example"/>
<meta property="twitter:image:src" content="http://example.com/wp-content/uploads/2017/03/example.jpg"/>
<meta property="twitter:domain" content="The Example"/>

When i am trying to check card preview using twitter card validator. i get this error: ERROR: Fetching the page failed because it's denied by robots.txt.

For fix this issue. I have added these line in robot file on server:

User-Agent: google
User-Agent: googlebot
User-agent: Twitterbot
Crawl-delay: 10 

User-agent: *
Disallow: /

But i am still getting this issue. Please help me to sort out this issue.

  • 写回答

1条回答 默认 最新

  • douxing1353 2017-03-07 00:33
    关注

    I never saw the robots.txt error. However, Twitter previews are denied if you can't show that the Tweeter is the owner.

    Try adding <meta name="twitter:creator" content="@abc">

    FWIW I don't use src on images.

    Try <meta property="twitter:image" content="http://example.com/wp-content/uploads/2017/03/example.jpg"/>

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题