The code is as follows:
wx.ready(function(){ wx.onMenuShareTimeline({ title: 'wechat-php-sdk博客', desc: '公众平台php开发包,细化各项接口操作,支持链式调用。项目创建人:dodgepudding 项目地址:https://github.com/dodgepudding/wechat-php-sdk', link: 'http://binsee.github.io/wechat-php-sdk/', imgUrl: 'http://binsee.github.io/wechat-php-sdk/img/author.jpg', trigger: function (res) { alert("点击分享:" +JSON.stringify(res)); // 用户确认分享后执行的回调函数 }, success: function (res) { alert("分享成功:" +JSON.stringify(res)); // 用户确认分享后执行的回调函数 }, cancel: function (res) { alert("取消分享:" +JSON.stringify(res)); // 用户取消分享后执行的回调函数 }, fail:function (res) { alert("分享失败:" +JSON.stringify(res)); } });});
Other interface test can be used, on this send to friends and share to friends circle invalid.
I test environment IOS8.1, version 6.02,
The same URL can be successfully triggered by sharing with a colleague's mobile phone (IOS6). The commissioning of their own phone for half a day is not ...
Has anyone ever met a similar situation?
Reply content:
The code is as follows:
Wx.ready (function () {wx.onmenusharetimeline ({title: ' WECHAT-PHP-SD K-Blog ', desc: ' Public platform PHP development package, refinement of various interface operations, support chain call. Project Creator: dodgepudding Project address: Https://github.com/dodgepudding/wechat-php-sdk ', Link: ' Http://binsee.github.io/wechat-ph p-sdk/', Imgurl: ' Http://binsee.github.io/wechat-php-sdk/img/author.jpg ', trigger:function (res) { Alert ("Click to share:" +json.stringify (res)); User confirms the callback function executed after sharing}, Success:function (res) {alert ("Shared success:" +json.stringify (res)); User confirms the callback function executed after sharing}, Cancel:function (res) {alert ("Cancel sharing:" +json.strin Gify (res)); callback function executed after the user cancels the share}, Fail:function (res) {alert ("Sharing failed:" +json.stringify (res)); } });});
Other interface test can be used, on this send to friends and share to friends circle invalid.
I test environment IOS8.1, version 6.02,
The same URL can be successfully triggered by sharing with a colleague's mobile phone (IOS6). The commissioning of their own phone for half a day is not ...
Has anyone ever met a similar situation?
1, make sure you are authenticated, background display has relevant permissions
2. Make sure you've set up a secure domain name in the background
3,HTTPS://GITHUB.COM/WJFZ/WEIXIN-JSSDK Use this demo to try and eliminate the reason for the device
Well, LZ's number is not certified.
Only the certified number can be shared.
Https://github.com/dodgepudding/wechat-php-sdk/tree/master/test/jsapi I use this code test, the other interface can be used, just share the few can not be used. And my number is not certified, must be certified to do?
If you are using the Android version, please look at your version ...
If it is 6.0.2.57 or the previous version, it does not seem to support the latest release of JS-SDK only 6.0.2.58 support
If it's an iOS system, it looks like my 6.0.1 version can be used
Turn on debug mode to view the prompt information.
In addition: Android 6.0.2 before and after the 6.0.2.58 version can be used, if you do not have Android and iOS sharing function that is still your configuration where there is still a problem.
Refer to this method: http://www.huceo.com/post/414.html
And the landlord's code, the server has been certified. When you share it, it's just the title of the page, not the personalized content you set up. Ask for guidance
I also have this problem, I do not know how to solve