公众号中插入微信公众号链接的办法探讨
要在微信公众号文章中插入公众号链接方法比较探讨
方法一:官方公众号后台文章编辑器中的卡片式插入,获取到的代码如下。这个代码似乎只能从默认编辑器中插入,从外部编辑器插入会被过滤掉,不管用
<mp-common-profile class="js_uneditable custom_select_card mp_profile_iframe mp_common_widget custom_select_card_selected" data-pluginname="mpprofile" data-id="MzkzOTYwNDEyMA==" data-headimg="http://mmbiz.qpic.cn/sz_mmbiz_png/Wp7GEH0vqibcpIz394Vf9VSNZqoYRibibialdNhkapIYVbqJiboQlnGHlu6GDlHSLWPD1hLnZ235icWUxsmkgpjicgrYA/0?wx_fmt=png" data-nickname="贝联同城" data-alias="" data-signature="西京同城网为服务1300万西安人的西安便民信息平台,为西安市民和商家提供生意转让、房屋租售、二手置换、征婚交友、招聘求职、征婚交友等有用信息" data-from="0" data-is_biz_ban="0" contenteditable="false"></mp-common-profile>
方法二:从公众号发布后的文章页面前端获取卡片式插入代码,这个也不好生效
网址:https://mp.weixin.qq.com/s/ayq8ysnECvFjyaMBcY4BPQ
<div role="option" class="wx_profile_card_inner"><div aria-hidden="true" class="wx_profile_card_bd"><div class="wx_profile weui-flex"><div class="wx_profile_hd"><img src="http://mmbiz.qpic.cn/sz_mmbiz_png/Wp7GEH0vqibcpIz394Vf9VSNZqoYRibibialdNhkapIYVbqJiboQlnGHlu6GDlHSLWPD1hLnZ235icWUxsmkgpjicgrYA/300?wx_fmt=png&wxfrom=19" alt="" class="wx_profile_avatar"></div> <div class="wx_profile_bd weui-flex weui-flex__item"><div class="weui-flex__item"><strong id="js_a11y_wx_profile_nickname" class="wx_profile_nickname">贝联同城</strong> <div id="js_a11y_wx_profile_desc" class="wx_profile_desc">西京同城网为服务1300万西安人的西安便民信息平台,为西安市民和商家提供生意转让、房屋租售、二手置换、征婚交友、招聘求职、征婚交友等有用信息</div> <div id="js_a11y_wx_profile_tips" class="wx_profile_tips"><!----><span class="wx_profile_tips_meta">1篇原创内容</span></div></div> <i class="weui-icon-arrow"></i></div></div></div> <div id="js_a11y_wx_profile_logo" aria-hidden="true" class="wx_profile_card_ft"> 公众号 </div> <!----></div>
方法三:从群里别人那得到
公众号文章用浏览器打开,F12查看下图BIZ值代入下面链接即可,https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=替换biz的值&scene=124#wechat_redirect
获取到的西京同城公众号链接:https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzkxMTIwMTI2OQ==&scene=124#wechat_redirect
如果没有更好的办法,那只能用方法三做个模拟公众号卡片链接
版权声明:本文由指尖十年发布,如需转载请注明出处,如有问题可在下面留言。
本站提供的一切软件、教程和内容信息来自网络收集整理,版权争议与本站无关,仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序和内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件与我们联系。