How to know if the link you’re sharing on Twitter will produce an in-tweet image preview

tl;dr – check if the link you’re sharing can produce an inline image preview by running it though Twitter’s Card Validator. If it doesn’t you can cheat by manually uploading or pasting in an image.

The order and type of links in your tweet can affect things: pasting in a link to a tweet always displays that tweet regardless of other links involved or their order but for any two (or more) non-tweet links included in your tweet the last one is displayed. You can prevent a link from displaying an image by converting it to an shortened link (not bitly though), or override by adding an image to the tweet.

Instagram is a law unto itself and linking your Twitter & Instagram won’t display your Insta posts, you need a third party app for that.

In my previous post, How the order of links in tweets determines which one gets its accompanying image displayed, I played around with the order (in a tweet) of links that either do or don’t produce an inline image preview.

This is what an inline image looks like.

Screenshot 2019-02-17 08.59.42

The picture below the text appears automatically after I shared a link (the link itself becomes hidden and is replaced with the image) to a post on this blog about Instagram images. Instagram doesn’t support Twitter cards so letting Instagram autopost your Insta posts to Twitter doesn’t work in terms of displaying an image, you need a third party app to do that – details in that post I’ve just linked to.

  1. For an inline image to appear the site being linked to must have Twitter cards set up correctly [technical info for web developers].
  2. You can check if any given link will work by plugging it into Twitter’s Card Validator (note that the S in HTTPmay be important so try that first if you’ve copied over an HTTP address).
  3. If (2) doesn’t work and you aren’t able to set up (1) you can always cheat by just uploading an image or pasting in a screenshot of the image you’d like to appear. The link you share won’t disappear (it’ll show up as a clickable link) but hardly anyone will notice this workaround 🙂

If you include links to two or more posts that have Twitter cards working then the last one mentioned in your tweet will have its image preview shown. If you include a Twitter-card link alongside a non-card link then the card link will always show its image and the order of the links doesn’t matter. For an enjoyably pedantic (YMMV) examination of the effect of the order of links have a look at my earlier post: How the order of links in tweets determines which one gets its accompanying image displayed.

Note that if you include in your tweet a link to another tweet (even if included with a link that would normally produce an inline image) it seems that the link to the tweet will always take precedence and show up, regardless of the order you write them in your tweet. In the example below (using my testing account) I’ve reversed the order of two links, one to a post on this blog about getting rid of ‘your friend liked this tweet‘ notifications, the other to a tweet of mine about a Wikipedia page I created.

Screenshot 2019-02-15 23.25.19