我使用react-share在tweeter和facebook.But上共享数据,当我以图像url的形式发送图像时,它将呈现为url,而不是imageUrl.I。我使用react-helmet用于twitter card的元标签集成。我在github pages link of the github page.上托管了我的应用程序
但是,当我验证Tweeter on card验证器上的这个链接时,我得到了"Unable to render卡预览“,有人能帮我在tweeter和facebook上通过url分享图片吗?
发布于 2020-05-22 22:25:23
您需要在根目录中创建一个robots.txt。在robots.txt中使用以下代码:
User-agent: Twitterbot Disallow:*
允许: /folder_with_image
https://stackoverflow.com/questions/53280774
复制相似问题