In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today Xiaobian to share with you Html5 how to achieve the second page sharing related knowledge points, detailed content, clear logic, I believe most people are still too familiar with this knowledge, so share this article for your reference, I hope you have some harvest after reading this article, let's learn about it together.
First of all, how to share WeChat twice
Document address, by introducing official API. Document writing is very good, directly into shareInfo on it.
wx.config({ debug: false, //Turn on debug mode, the return values of all APIs called will appear in the client alert, if you want to view the passed parameters, you can open it on the PC side, the parameter information will be printed through log, only on the PC side will be printed. appId: sign.appid, //Required, unique identifier of public number timestamp: sign.timestamp, //Required, timestamp of signature generation nonceStr: sign.nonceStr, //Required, random string to generate signature signature: sign.signature, //required, signature, see Appendix 1 jsApiList: [ 'onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone' ] //Required, list of JS interfaces to be used, see Appendix 2} for list of all JS interfaces);wx.ready(function() { wx.showOptionMenu(); wx.onMenuShareAppMessage(shareInfo); //Get the "Share with friends" button click status and custom sharing content interface (soon to be obsolete) wx.onMenuShareTimeline(shareInfo); //Get "Share to Friends" button Click status and customize sharing content interface (soon to be obsolete) wx.onMenuShareQQ(shareInfo); //Get "Share to QQ" button Click status and customize sharing content interface wx.onMenuShareWeibo(shareInfo); //Get the "Share to Tencent Weibo" button Click status and customize the sharing content interface wx.onMenuShareQZone(shareInfo); //Get "Share to Qzone" button Click status and customize sharing content interface});
Is there a pit in WeChat's second sharing?
Alas? I wrote it right. Why didn't it work? There's no requirement written up or down in the document.
First check WeChat public platform-development-interface permissions and find that those without permissions are prompted not to obtain them, and then go to WeChat authentication. My sharing interface prompt has been obtained. What does it say? WeChat documents can be viewed at the back. Generally, there are instructions. That is, the following sentence, then the problem comes, personal number is unable to do authentication.
Cannot share on iOS and Android (please confirm that the public account has been authenticated, only the authenticated public account has the permission to share the relevant interface, if it has been authenticated, check whether the listening interface is triggered in the wx.ready callback function)
About api adjustment error sorting
invalid url domain, my problem is that js security domain name is not done
invalid url signature, My problem is jsapi_ticket has not been updated
WeChat JS interface signature verification tool
QQ second sharing first said document
Documents circulating on the Internet, what api, I tried, not so good. Through the address to enter, the final maintenance is 15 years or something.
How to set up secondary sharing
Meta tags are the most scientific.
Is there anything to be aware of?
This meta tag cannot be added later, it must be present when entering the page, that is to say, only the background template can be used. Otherwise, some low Android versions cannot pull the summary (yes, some mobile phone dynamics can get it), iOS does not support it.
The above is all the content of this article "Html5 how to achieve page second sharing", thank you for reading! I believe everyone has a great harvest after reading this article. Xiaobian will update different knowledge for everyone every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.