xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Twitter Share Card All In One

Twitter Share Card All In One

Twitter Card

ERROR: Invalid card name (Card error)

可用枚举值:“summary”, “summary_large_image”, “app”, or “player”.

https://cards-dev.twitter.com/validator

image

solution

- <meta name="twitter:card" content="https://cdn.xgqfrms.xyz/logo/logo.png">
+ <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@https://cdn.xgqfrms.xyz">
<meta name="twitter:title" content="free CDN">
<meta name="twitter:description" content="free CDN for everyone who wants speed his website!">
<meta name="twitter:creator" content="@xgqfrms">
<meta name="twitter:image" content="https://cdn.xgqfrms.xyz/logo/logo.png">
<meta name="twitter:domain" content="cdn.xgqfrms.xyz">

image

shareToTwitter({
    uid: '.project-tagline',
    author: 'xgqfrms',
    tags: 'js,cnblogs',
});


https://cdn.xgqfrms.xyz/

image

shareToTwitter();

https://www.cnblogs.com/xgqfrms/

refs

https://twittercommunity.com/t/error-invalid-card-name-card-error/24763

https://stackoverflow.com/questions/61509198/twitter-card-not-rendering-error-invalid-card-name-card-error



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2022-03-10 17:19  xgqfrms  阅读(88)  评论(1编辑  收藏  举报