PHP WeChat sharing and QQ sharing

Source: Internet
Author: User
: This article mainly introduces PHP sharing and QQ sharing. if you are interested in PHP tutorials, please refer to it. Http://ossweb-img.qq.com/images/js/WXJssdk.js> script

// Share initialization
WXJssdk. init (function (wx ){
// Share with a friend
Wx. onMenuShareAppMessage ({
Title: invalid data. tTitle,
Desc: parse data. tContent,
Link: invalid data. WXtimeLineLink + "? ADTAG = tgi. share. wx. message ",
ImgUrl: invalid data. imgUrl,
Success: function () {pgvSendClick ({hottag: clickflow + '. share. message '});},
Cancel: function () {pgvSendClick ({hottag: clickflow + '. share. message_cancel '});}
});
// Share with your friends
Wx. onMenuShareTimeline ({
Title: invalid data. tTitle,
Link: invalid data. WXtimeLineLink + "? ADTAG = tgi. share. wx. timeline ",
ImgUrl: invalid data. imgUrl,
Success: function () {pgvSendClick ({hottag: clickflow + '. share. timeline '});},
Cancel: function () {pgvSendClick ({hottag: clickflow + '. share. timeline_cancel '});}
});
// Share Q
Wx. onMenuShareQQ ({
Title: invalid data. tTitle,
Desc: parse data. tContent,
Link: collect data. QQtimeLineLink + "? ADTAG = tgi. share. wx. qq ",
ImgUrl: invalid data. imgUrl,
Success: function () {pgvSendClick ({hottag: clickflow + '. share. QQ '});},
Cancel: function () {pgvSendClick ({hottag: clickflow + '. share. qq_cancel '});}
});
// Share to QZone
Wx. onMenuShareQZone ({
Title: invalid data. tTitle,
Desc: parse data. tContent,
Link: collect data. QQtimeLineLink + "? ADTAG = tgi. share. wx. qzone ",
ImgUrl: invalid data. imgUrl,
Success: function () {pgvSendClick ({hottag: clickflow + '. share. qzone '});},
Cancel: function () {pgvSendClick ({hottag: clickflow + '. share. qzone_cancel '});}
});
// Share to Weibo (this is not required by default and can be used as needed)
Wx. onMenuShareWeibo ({
Title: invalid data. tTitle,
Desc: parse data. tContent,
Link: collect data. QQtimeLineLink + "? ADTAG = tgi. share. wx. weibo ",
ImgUrl: invalid data. imgUrl,
Success: function () {pgvSendClick ({hottag: clickflow + '. share. weibo '});},
Cancel: function () {pgvSendClick ({hottag: clickflow + '. share. weibo_cancel '});}
});
});
// Initialize the Q-sharing
Mqq. data. setdomaininfo ({
Pai_url: Using Data. QQtimeLineLink + "? ADTAG = tgi. share. qq ",
Title: invalid data. tTitle,
Desc: parse data. tContent,
Image_url: invalid data. imgUrl
},
Function () {pgvSendClick ({hottag: clickflow + '. share. QQ '});}
);

The above introduces PHP sharing and QQ sharing, including some content. I hope my friends who are interested in PHP tutorials will be helpful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.