Home  >  Article  >  Backend Development  >  javascript - Sharing function in WeChat page

javascript - Sharing function in WeChat page

WBOY
WBOYOriginal
2016-08-18 09:16:051422browse

javascript - Sharing function in WeChat page

The app displays normally when shared to WeChat, but if you click to open the HTML5 page and share it again, the introduction becomes a link.
Masters, how are you going to solve this

Reply content:

javascript - Sharing function in WeChat page

The app displays normally when shared to WeChat, but if you click to open the HTML5 page and share it again, the introduction becomes a link.
Masters, how are you going to solve this

Your jssdk is not initialized normally. It is recommended to set debug to true in wx.config and you can see the log

You can take a look at WeChat’s help documentation, and there will be no problem if you follow the step-by-step instructions.
http://mp.weixin.qq.com/wiki/...

The app is packaged with WeChat SDK. What you share is an h5 page, and you also need to load jssdk to define the shared content

javascript - Sharing function in WeChat page
http://mp.weixin.qq.com/wiki/...
Use WeChat’s jssdk to define related information shared

First you have to configure jssdk on your server, and then quote the js sharing code in the page. See the WeChat jssdk tutorial for details! If you are a mobile phone user, please stop typing codes

Use WeChat jssdk, and also need to cooperate with the service background, because token and other permission information are needed

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn