如何将图像添加到推文或推特如何决定要呈现的图像网址 [英] How do I add an image to a tweet or how does twitter decide which image urls to render

查看:36
本文介绍了如何将图像添加到推文或推特如何决定要呈现的图像网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

If I post a tweet with a link to a picture it will only display the link. But if twitpic post an image link (or rather a link to a page with an image) twitter will render the image (smaller albeit).

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

I know twitter now has Tweet Entities but those appear to be for reading and not writing.

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

And yeah I could use twitpic but I rather not since we already have the images saved and ready to go.

基本上你是如何变成这样的:twitpic、lockerz、photobucket、yfrog...等等,这样推特就会把你的链接识别为图片.

Basically how do you become like: twitpic, lockerz, photobucket, yfrog... so on so that twitter recognizes your links as images.

更新:我知道 Twitter 很快就会提供上传图片的 API,但我更希望我的网站上有图片内容.

推荐答案

更新: 如评论中所述,请参考 此答案 以获取更新信息.Twitter 现在支持一种更直接的方式来实现相同的效果.

Update: As noted in comments, refer to this answer for updated information. Twitter now supports a more straightforward way for achieving the same effect.

Twitter 卡片概述:https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards

Twitter Cards overview: https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/abouts-cards

Twitter 抓取图像的 URL,并为它合作的公司内嵌显示它们.

Twitter scrapes the URL for images and display them inline for the companies it has partenered with.

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

The current list includes: DailyBooth, DeviantART, Etsy, Flickr, Justin.TV, Kickstarter, Kiva, Photozou, Plixi, Twitgoo, TwitPic, TwitVid, USTREAM, Vimeo, yfrog, and YouTube. twitter.com/newtwitter

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

They also support iTunes, blip.tv, Instagram, Rdio, SlideShare, and Dipdive: http://blog.twitter.com/2010/12/now-playing-on-newtwitter-embedded.html

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

So for you to become like twitpic etc, you need to have a partnership with them. There is no API trick for that. The other way is to use one of those services which is not waht you prefer but seems to be the easiest way out.

这篇关于如何将图像添加到推文或推特如何决定要呈现的图像网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆