如何将图像添加到推文或twitter如何确定要呈现的图像网址

Ada*_*ent 22 twitter image

如果我发布带有图片链接的推文,它只会显示链接.但是,如果twitpic发布图像链接(或者更确切地说是指向带有图像的页面的链接),twitter将呈现图像(尽管更小).

我知道twitter现在有Tweet实体,但这些似乎是为了阅读而不是写作.

是的,我可以使用twitpic,但我不愿意,因为我们已经保存了图像并准备好了.

基本上你是如何变得像:twitpic,lockerz,photobucket,yfrog ......等等,以便twitter将你的链接识别为图像.

更新:我知道twitter会很快提供上传图片api,但我宁愿在我的网站上提供图片内容.

Mrc*_*ief 25

Twitter 抓取图像的URL并将其内联显示给它所参与的公司.

目前的列表包括:DailyBooth,DeviantART,Etsy,Flickr,Justin.TV,Kickstarter,Kiva,Photozou,Plixi,Twitgoo,TwitPic,TwitVid,USTREAM,Vimeo,yfrog和YouTube. twitter.com/newtwitter

他们还支持iTunes,blip.tv,Instagram,Rdio,SlideShare和Dipdive:http://blog.twitter.com/2010/12/now-playing-on-newtwitter-embedded.html

所以,为了让你变得像twitpic等,你需要与他们建立伙伴关系.这没有API技巧.另一种方法是使用其中一种不是你喜欢的服务,但似乎是最简单的方法.

  • @Adam Gent:同意你的看法.虽然有媒体(图像/视频等),但通常有隐私,许可,版权影响,更不用说安全隐患了.最好是信任少数合作伙伴以提供更好的QoS. (2认同)

rna*_*aud 6

Twitter现在有一个他们称之为卡片的API.它就像Facebook实现一样使用HTML Meta标签.

https://dev.twitter.com/docs/cards

它现在仅适用于白名单批准的域名.


mis*_*uko 5

The top answer to this question is out of date.

Twitter will now show an image for a link shared in a tweet if it contains the following meta info:

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{full/absolute image url here}">
Run Code Online (Sandbox Code Playgroud)

https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary-card-with-large-image