微信分享网页不显示缩略图和描述怎么办?
I'd be happy to help you with that! ??When sharing a webpage on WeChat, it's common for the thumbnail and description not to display. This is because WeChat has certain requirements for sharing web pages, which are designed to ensure a better user experience.
To resolve this issue, we need to call the WeChat JS-SDK interface. In this article, I'll walk you through the steps to do so.
Part1: Preparation
Before we dive into the code, let's prepare our WeChat account for sharing web pages. Here are the steps:
1. Log in to your WeChat account and go to the "Developer" section.
2. Click on "Basic Configuration" from the left-hand menu.
3. Fill in the required information, such as your app name, description, and logo.
Part2: Registering the WeChat JS-SDK
Now that we have our WeChat account set up, let's register the WeChat JS-SDK. This is a necessary step for sharing web pages on WeChat.
1. Go to the WeChat Developer Platform and click on "JS-SDK" from the top menu.
2. Click on "Register" and fill in the required information, such as your app name and description.
3. You will receive an AppID and AppSecret, which we'll use later.
Part3: Adding the WeChat JS-SDK to Your Web Page
Now that we have our WeChat account and JS-SDK registered, let's add the SDK to our web page.
1. Add the following script tag to your HTML file:
```html