所以我正在测试 Twitter 和 Facebook 共享功能。
我目前正在测试 Twitter 的分享按钮,我已经添加了meta
标签,经过几个小时的搜索,我发现我能够嵌入推文(在链接回我网站的推文中嵌入推特图片)我需要推特卡。
我的元代码:
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="http://MY_IP_ADDRESS:3000/">
<meta name="twitter:creator" content="@random">
<meta name="twitter:title" content="Parade of Fans for Houston’s Funeral">
<meta name="twitter:description" content="NEWARK - The guest list and parade of limousines with celebrities emerging from them seemed more suited to a red carpet event in Hollywood or New York than than a gritty stretch of Sussex Avenue near the former site of the James M. Baxter Terrace public housing project here.">
<meta name="twitter:image" content="http://cdn0.lostateminor.com/wp-content/uploads/2015/10/Amazing-long-exposure-photos-make-light-look-like-cobwebs-on-trees2-650x434.jpg">
然后分享按钮看起来像:
<img src="http://cdn0.lostateminor.com/wp-content/uploads/2015/10/Amazing-long-exposure-photos-make-light-look-like-cobwebs-on-trees2-650x434.jpg">
<a href="https://twitter.com/intent/tweet?button_hashtag=test" data-url="http://localhost.share.com/" target="_blank">Tweet #test</a>
</img>
当我在推特上发布井号标签时,它不会拾取我的图像或推特它。所以我一直在尝试运行我的网站(我正在测试它在 Twitter 卡验证器上的本地主机上)https://cards-dev.twitter.com/validator。
任何想法我做错了什么?或者为什么我不能使用我的IP
地址来测试 Twitter 卡?
谢谢!