How to set the title, thumbnail, connection, and description of WeChat sharing, and how to set the thumbnail

Source: Internet
Author: User

How to set the share title, thumbnail, connection, and description, and how to set the thumbnail

Share the title, thumbnail, connection, and description of how to set, this situation will be encountered during the sharing process, unsolvable friends can look at the following code

<Script> var imgUrl = 'HTTP: // response var lineLink = 'HTTP: // topic.xcar.com.cn/201403/ad_q3/index.php'; var descContent = "http://topic.xcar.com.cn/201403/ad_q3/index.php "; var preview Title = '[enable the premium season for Audi Q3] sign up for a test drive and win a gift'; var appid = 'wxc9937e3a66af6dc8'; function between friend () {WeixinJSBridge. invoke ('sendappmessage', {"appid": appid, "img_url": imgUrl, "img_wid Th ":" 640 "," img_height ":" 640 "," link ": lineLink," desc ": descContent," title ": Unknown title}, function (res) {_ report ('send _ msg ', res. err_msg) ;}} function effectimeline () {WeixinJSBridge. invoke ('effectimeline', {"img_url": imgUrl, "img_width": "640", "img_height": "640", "link": lineLink, "desc ": descContent, "title": partition title}, function (res) {_ report ('timeline', res. err_msg) ;}) ;}funct Ion merge Weibo () {WeixinJSBridge. invoke ('incluweio ', {"content": descContent, "url": lineLink,}, function (res) {_ report ('weibo', res. err_msg) ;};}// when the built-in browser completes internal initialization, The WeixinJSBridgeReady event is triggered. Document. addEventListener ('weixinjsbridgeready', function onBridgeReady () {// send it to WeixinJSBridge. on ('menu: share: appmessage', function (argv) {friend () ;}); // share it with WeixinJSBridge. on ('menu: share: timeline ', function (argv) {pull timeline () ;}); // share it with WeixinJSBridge. on ('menu: share: weibo ', function (argv) {shareWeibo () ;}, false); </script>

How to display thumbnails when sharing links

The following method does not show thumbnails. The web page is displayed.
1. Open the web page in the uc browser that you want to share the link with, and press the address input box at the top of the web page to copy the web site. 2. In the circle of friends, press the camera icon to open text input, paste the URL copied in the first step, and then press publish. 3. Find the published website in the circle of friends. Click this website to open it in the circle of friends. 4. Open the webpage, click the icon [share to circle of friends] in the upper-right corner of the webpage, and write down the mood and release at the moment. You can share a link to the web site of the uc browser in the circle of friends. 5. Delete the Web site that was just published in step 5 in the circle of friends. OK
 
Thumbnails shared by wordpress articles

If you use Baidu to share images or Baidu to share images, especially Baidu to share images, the share button will appear on the images. This will never happen again. I have been using it for a long time! Good results!




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.