What is the order of priority of image previews for discourse links on twitter?

Hello,

There are several settings for this.

  1. opengraph image
  2. twitter summary large image
  3. category logo image
  4. post first image

The opengraph image is the base. If you only set up this then it will appear if there is no post or category image.

If you set up a twitter summary large image then it will override the opengraph image on Twitter. So it will appear on Twitter instead of opengraph image.

The category logo image and post first image always take priority over the others.


Priority order:

  1. post first image and category logo image
    (if missing) :arrow_down_small:

  2. twitter summary large image
    (if missing) :arrow_down_small:

  3. opengraph image
    (if missing) :arrow_down_small:

  4. large icon

(if I am right)


Configure

The opengraph image and twitter summary large image you can set up here: /admin/site_settings/category/branding


For the category logo image go to the specific category settings Images tab.


Tests on Twitter

I share a post link which has no contain image and with twitter summary large image setting :arrow_down_small:

I share a post link which contain image and with twitter summary large image setting :arrow_down_small:

I share a post link which not contain image and no twitter summary large image but I seted up an opengraph image

I share a category link which contains category logo image

Share site link without opengraph image and other setting.


Hope this helps :slightly_smiling_face: