1.PHP 微信å享 èªå®ä¹å
容
2.php微站微信公众号授权登录
3.微信朋友圈分享代码(php分享朋友圈代码)
PHP 微信å享 èªå®ä¹å 容
æ¹å¼1:ç¨èªå·±å ¬ä¼å·çsdkå»å®ç°å享ï¼
æ¹å¼2:ç¨jsåå©ucæµè§å¨çæ¹å¼å享ï¼
æ¹æ³ä¸ï¼ç´æ¥è¿å¾®ä¿¡å¼åè ä¸å¿ææ¥å£ï¼æ²³å ·ä½å®ç°æ¹å¼ï¼æ¹å¼äºå¦ä¸ï¼
<html>
<body>
<script src="jquery.min.js"></script>
<h4>æµè¯å¾®ä¿¡å享åè½ï¼ä» å¨ææºçUCæµè§å¨ä¸ææï¼</h4>
<input type="button" class="btnShareFriends" style='margin: px auto; width: %;height:px;' value='å享ç»å¾®ä¿¡å¥½å'> </input>
<br/>
<input type="button" class="btnWeixinShare" style='margin: px auto; width: %;height:px;' value='å享å°å¾®ä¿¡æåå'> </input>
<script type="TEXT/javascript">
$(function () {
if (/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))) {
if (window.location.href.indexOf("?微信mobile") < 0) {
//å¤ææ¯ææºç«¯è®¿é®
if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
//å¤ææ¯UCæµè§å¨
if (typeof (ucweb) != "undefined") {
$(".btnShareFriends").click(function () {
var Browser = new Object();
Browser.ios = /iphone/.test(Browser.userAgent); //å¤æiosç³»ç»
var title = "æµè¯å享å°æåå";
var img = "";
var url = location.href;
if (Browser.ios) {
ucbrowser.web_share(title, img, url, 'kWeixin', '', '@yst', '');
} else {
ucweb.startRequest("shell.page_share", [title, img, url, 'WechatFriends', '', '', '']);
}
});
$(".btnWeixinShare").click(function () {
var Browser = new Object();
Browser.ios = /iphone/.test(Browser.userAgent); //å¤æiosç³»ç»
var title = "æµè¯å享å°æåå";
var img = "";
var url = location.href;
if (Browser.ios) {
ucbrowser.web_share(title, img, url, 'kWeixinFriend', '', '@yst', '');
} else {
ucweb.startRequest("shell.page_share", [title, img, url, 'WechatTimeline', '', '', '']);
}
});
}
} else {
alert("请使ç¨ææºUCæµè§å¨æµè¯");
}
} else {
alert("请使ç¨ææºè®¿é®æµè¯");
}
}
});
</script>
</body>
</html>
è¿ä¸ªéè¦æ³¨æucåªæ¯æucæµè§å¨
php微站微信公众号授权登录
php微站微信公众号授权登录,即在微信客户端的微信无忧源码视频浏览器里面授权登录
1.getBaseInfo.php文件获取code ?php //1.获取到code $appid = "