当前位置:网站首页>Wechat official account custom sharing and updateappmessagesharedata are all successful. Why is it a link that is shared?
Wechat official account custom sharing and updateappmessagesharedata are all successful. Why is it a link that is shared?
2022-07-28 19:08:00 【Li & Xuan】
Please note that , The original wx.onMenuShareTimeline、wx.onMenuShareAppMessage、wx.onMenuShareQQ、wx.onMenuShareQZone Interface , About to be abandoned .
Please migrate the client as soon as possible 6.7.2 And JSSDK 1.4.0 The above version supports wx.updateAppMessageShareData、wx.updateTimelineShareData Interface .
Be careful :
1、 At present, you can also enter sharing from the official account menu 、 Add to Favorites after visiting web pages , From my collection to sharing is normal .
2、 Other portals should share links .
expand :
adopt ready Interface processing successfully verified
wx.ready(function(){
// config It will be executed after information verification ready Method , All interface calls must be in the config After the interface gets the result ,config Is an asynchronous operation of a client , So if you need to call the relevant interface when the page is loaded , The relevant interface shall be ready The function is used to ensure proper execution. . Interface called only when triggered by the user , You can call , No need to put ready Function .
});
wx.ready(function () { // It needs to be called before the user may click the share button
wx.updateTimelineShareData({
title: '', // Share the title
link: '', // Share links , The link domain name or path must be the official account corresponding to the current page JS The security domain name is consistent
imgUrl: '', // Share icon
success: function () {
// Set up the success
}
})
}); 边栏推荐
- What is one hot code? Why use it and when?
- Swiftui swift forward geocoding and reverse geocoding (tutorial with source code)
- 现代化个人博客系统 ModStartBlog v5.4.0 登录界面改版,新增联系方式
- Swiftui component how to implement textfield of hidden part of phone number mask (tutorial includes source code)
- 什么样的知识付费系统功能,更有利于平台与讲师发展?
- 湖上建仓全解析:如何打造湖仓一体数据平台 | DEEPNOVA技术荟系列公开课第四期
- 全新升级!《云原生架构白皮书 2022 版》重磅发布
- EasyCVR接入设备后播放视频出现卡顿现象的原因分析及解决
- OAI L3 and L2 interface analysis
- MySQL date function
猜你喜欢

Configuration tutorial: how does the organizational structure of the new version of easycvr (v2.5.0) cascade to the superior platform?

kotlin:Nothing

3、 Uni app fixed or direct to a certain page

The ever-changing pointer ----- C language
![[machine learning] support vector machine classification](/img/6d/e4fb9b5bf82362edcebbf366f9b73e.png)
[machine learning] support vector machine classification

Getting started with gateway

One Hot编码是什么?为什么要用它,什么时候用它?

How to obtain data on mobile phones and web pages after the SCM data is uploaded to Alibaba cloud Internet of things platform?

现代化个人博客系统 ModStartBlog v5.4.0 登录界面改版,新增联系方式

Win11电脑摄像头打开看不见,显示黑屏如何解决?
随机推荐
QT & OpenGL lighting
Pytorch GPU yolov5 reports an error
How to obtain data on mobile phones and web pages after the SCM data is uploaded to Alibaba cloud Internet of things platform?
数字经济时代的开源数据库创新 | 2022开放原子全球开源峰会数据库分论坛圆满召开
Software testing dry goods
4 年后,Debian 终夺回“debian.community”域名!
Remember a uniapp experience
Win11怎么调亮度?Win11调屏幕亮度的四种方法
C and SQL mixed programming, vs need to download what things
112. 使用自开发的代理服务器解决 SAP UI5 FileUploader 上传文件时遇到的跨域访问错误
Configuration tutorial: how does the organizational structure of the new version of easycvr (v2.5.0) cascade to the superior platform?
Qt: 一个SIGNAL绑定多个SLOT
Use the self-developed proxy server to solve the cross domain access errors encountered when uploading files by SAP ui5 fileuploader trial version
Introduction and advanced level of MySQL (I)
直播平台软件开发,js实现按照首字母排序
N32替换STM32,这些细节别忽略!
How to write a JMeter script common to the test team
AI has changed thousands of industries. How can developers devote themselves to the new "sound" state of AI voice
Three minutes to understand, come to new media
MySQL date function