html微信分享没有图片不显示,微信分享网页链接缩略图不显示解决方法
I'd be happy to help you with that! ??Why doesn't the thumbnail image show up when sharing a webpage link on WeChat?
When it comes to sharing web page links on WeChat, there are certain requirements and specifications that need to be met in order for the thumbnail image to display correctly. One of the main reasons why the thumbnail image may not show up is due to the custom share link functionality implemented on the webpage.
What's the issue with custom share links?
As of April25th,2017, WeChat introduced new requirements for custom share links used in their JSSDK (JavaScript SDK) "Share to Moments" and "Send to Friend" interfaces. Specifically, any custom share link must have a domain or path that matches the public account's JS security domain.
What does this mean?
In simpler terms, when you create a custom share link for your webpage, it needs to be associated with the same domain as your WeChat public account. This is because WeChat wants to ensure that the custom share link is safe and trustworthy, and that it doesn't pose any security risks to their users.
How do I fix this issue?
To resolve this issue, you'll need to make sure that your custom share link meets the following requirements:
1. Domain matching: The domain of your custom share link must match the public account's JS security domain.
2. Path matching: The path of your custom share link must also match the public account's JS security domain.
Here are some steps you can take to fix this issue:
Step1: Check your WeChat public account settings
First, log in to your WeChat public account and check its settings. Make sure that the "JS Security Domain" is correctly set up. This domain will be used as a reference point for verifying the custom share link.
Step2: Update your custom share link
Next, update your custom share link to include the correct domain and path. For example, if your public account's JS security domain is ` you would need to use this domain in your custom share link.
Here's an example of a correctly formatted custom share link:
```html 方法html微信分享没有图片不显示