


WeChat public platform development One-click follow WeChat public platform account
Mar 08, 2017 pm 04:07 PM1. Use HTTP protocol
【Expired】
<a>点击关注方倍工作室</a>。
2. Use weixin protocol
Method 1:【Expired Invalid]
<a>点击关注方倍工作室</a>
Method 2: [Invalid]
<a>点击关注方倍工作室</a>
Method 3: [valid on Android, invalid on Apple]
<a>点击关注方倍工作室</a>
3. Use JavaScript code
【Only valid for official domain names】
var addWxContact = function(wxid, cb) { if (typeof WeixinJSBridge == 'undefined') return false; WeixinJSBridge.invoke('addContact', { webtype: '1', username: 'gh_204936aea56d' }, function(d) { // 返回d.err_msg取值,d还有一个属性是err_desc // add_contact:cancel 用户取消 // add_contact:fail 关注失败 // add_contact:ok 关注成功 // add_contact:added 已经关注 WeixinJSBridge.log(d.err_msg); cb && cb(d.err_msg); }); };
4. Exclusively for some accounts
【Expired】
https://open.weixin.qq.com/subscribe?appid=wxb629c48b653e
5. DNS only
【Effective for Gao Shuaifu】
Decoding followed by
https://login.weixin.qq.com/l/E0LsxoTaRxC_HM
The above is the detailed content of WeChat public platform development One-click follow WeChat public platform account. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP WeChat development: How to implement message encryption and decryption

PHP WeChat development: How to implement customer service chat window management

PHP WeChat development: How to implement user tag management

How to use PHP for WeChat development?

PHP WeChat development: How to implement speech recognition

Using PHP to develop WeChat mass messaging tools

PHP WeChat development: How to implement group message sending records

ThinkPHP6 WeChat Development Guide: Quickly build WeChat public account applications
