可以分享图片和文字就是分享不了网页,不知道是什么原因?有可能是数据的问题吗?
问下微博官方客服,应该是可以分享网址的。
是不是封装的WebpageObject出错了。
WebpageObject webpageObject = new WebpageObject();
webpageObject.identify = Utility.generateGUID();
webpageObject.title = title;
webpageObject.description = des;
Bitmap bitmap = BitmapFactory.decodeResource(mContext.getResources(), R.mipmap.icon);
// 设置 Bitmap 类型的图片到视频对象里
webpageObject.setThumbImage(bitmap);
webpageObject.actionUrl = actionUrl;
webpageObject.defaultText = "默认文案";
我猜是你图片大于32K的原因
WebpageObject 的分享图片时,缩略图和大图(均为 Bitmap 格式)的最大值分别为 32KB 和 2MB