|
/

Android分享微信,设置了缩略图,但分享面板的缩略图显示APP Logo

XX********id
发布于 4 年前
2421来自广东省
社会化分享 U-Share
API调用
//Android分享微信,设置了缩略图,但分享面板的缩略图显示APP Logo, 为什么设置的缩略图不生效
UMImage img = new UMImage(context, shareImgBytes);
UMImage thumb= new UMImage(context, shareImgBytes);
UMImage image= new UMImage(context, shareImgBytes);
image.compressStyle = UMImage.CompressStyle.SCALE;
image.setThumb(thumb);
ShareAction shareAction = new ShareAction(context)
.withMedia(image)
.setPlatform(convertToUmengBean(SHARE_MEDIA.WEIXIN))
.setCallback(mShareListener);
2个回答
 
4 年前
来自上海

楼主你好,你的分享图是否过大?

 
4 年前
来自浙江省

你好,微信对缩略图大小有限制,需要小于32kb。你这边有超过分享的限制吗

Loading ...
登录社区,分享你的经验