当前位置:网站首页>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
}
})
}); 边栏推荐
- Qt: 一个SIGNAL绑定多个SLOT
- 4 年后,Debian 终夺回“debian.community”域名!
- How to obtain data on mobile phones and web pages after the SCM data is uploaded to Alibaba cloud Internet of things platform?
- “讳疾忌医”的开源走不远
- How much is software testing training generally?
- Remember a uniapp experience
- 112. 使用自开发的代理服务器解决 SAP UI5 FileUploader 上传文件时遇到的跨域访问错误
- uwb模块实现人员精确定位,超宽带脉冲技术方案,实时厘米级定位应用
- Kotlin:sealed Class detailed explanation of sealed class
- [machine learning] support vector machine classification
猜你喜欢

Today in history: Microsoft acquires qdos; Model testing pioneer birth; The first laser typesetting Chinese newspaper

GC garbage collector details

视频融合云服务EasyCVR平台白名单功能如何使用?

面试官:ThreadLocal使用场景有哪些?内存泄露问题如何避免?

真正的 HTAP 对用户和开发者意味着什么?

112. Use the self-developed proxy server to solve the cross domain access error encountered when uploading files by SAP ui5 fileuploader

CTR click through rate prediction practice project of advertising recommendation!

【雷达】基于核聚类实现雷达信号在线分选附matlab代码

Introduction and advanced level of MySQL (I)

Unity 之 切换语言导致报错:System.FormatException:String was not recognized as a valid DateTime.
随机推荐
Kotlin:sealed Class detailed explanation of sealed class
Three minutes to understand, come to new media
SwiftUI Swift 之正向地理编码与反向地理编码(教程含源码)
Haproxy implements proxy configuration
The open source of "avoiding disease and avoiding medicine" will not go far
1、 My first wechat applet
How long does software testing take?
我的创作纪念日 -- 2022年7月25日
2022 Niuke multi School Game 2 J. link with arithmetic progress (three points + enumeration)
Two month software testing training scam? How to choose training institutions?
Introduction and advanced level of MySQL (I)
N32 replaces STM32. Don't ignore these details!
【雷达】基于核聚类实现雷达信号在线分选附matlab代码
QT widget promoted to QWidget
关于ASM冗余问题
“讳疾忌医”的开源走不远
Mongodb database shell command execution
408 review strategy (strengthening stage)
Can I get employed after two months of software testing training?
注意力机制及代码实现