2

I have an issue very similar to this issue, and the accepted answer is outdated.

Currently, when users share a link to my website, 3 cases happen:

  • there is no image (default grey icon)
  • there is an image that is not the intended one
  • there is the intended image (the main article image, also referred in the meta using open graph)

What's more, different users, on the same network, sharing the same article, experience different results.

How does wechat identify which image to use as a thumbnail when sharing a link? How can one achieve a consistent behavior?

froger.me
  • 307
  • 5
  • 14

2 Answers2

0

You have to have a Wechat platform account and use the jssdk provided.

English documentation for jssdk is available here: http://admin.wechat.com/wiki/index.php?title=JS_SDK_DOCUMENT

  • You could improve your answer by adding details (as oppose to just providing the link) – alexbt Aug 29 '17 at 16:41
  • 1
    That sounds good... except for the part where you need to have a registered company to validate the account. Wechat really doesn't allow to specify what image to use, like, I don't know, every other social networks in the world, or is it another "with Chinese characteristics" thing? – froger.me Sep 08 '17 at 15:54
0

If you are not using the WeChat JS SDK, then WeChat seems to use whatever value you have set in your meta tag for og:image

<meta property="og:image", content: "http://example.com/path/to/image.jpg">

If you would like to further modify whatever settings are provided for sharing a link in the WeChat moments or in-message settings, you'd have to take a look at the SDK.

Please note that the title that accompanies that image should be set in the following meta tag:

<meta property="og:title", content: "Title of your page">
Mindsect Team
  • 2,311
  • 5
  • 29
  • 36
  • 4
    `og:image` doesn't seem to work. Can someone verify? – stevemao Oct 15 '18 at 05:00
  • `og:image` does work. Ps.note: Wechat caches url's and their image so you might need to update your url forsee the difference. – Necmttn Feb 11 '19 at 07:13
  • 2
    @stevemao I can confirm, og:image doesn't work. https://www.askwinston.xyz/blog/2020-06-06-dfsdf/ – Franva Jun 06 '20 at 11:53
  • As stated in the original question: "the main article image, also referred in the meta using open graph" is already set, to no avail. – froger.me Aug 03 '20 at 08:55