微信分享设置图片的api有两个:
WXMediaMessage *urlMessage = [WXMediaMessage message];
[urlMessage setThumbData:]
[urlMessage setThumbImage:]
根据业务需要可以设置本地image也可以来自后台服务器
如果是后台返回的URL 处理:
NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:fileURL]];
UIImage *local_image = [UIImage imageWithData:data];
[urlMessage setThumbImage:local_image]