美文网首页
微信分享不用友盟的

微信分享不用友盟的

作者: 赤焰军少帅林殊 | 来源:发表于2017-12-01 18:38 被阅读9次
 SendMessageToWXReq *req = [[SendMessageToWXReq alloc] init];
    WXMediaMessage *message = [WXMediaMessage message];
    message.title = @"Hi天气这里是标题";
    message.description = @"不给糖就捣蛋,还不快去下载加好评!";
    [message setThumbImage:[UIImage imageNamed:@"icongift"]];
    req.message = message;
    WXWebpageObject *ext = [WXWebpageObject object];
            NSString* string=[NSString stringWithFormat:@"https://h5.taoqi001.com/pages/invite?invitecode=%@",self.codenumber];
            ext.webpageUrl = string;
            message.mediaObject = ext;
     //默认是Session分享给朋友,Timeline是朋友圈,Favorite是收藏
    message.mediaObject = ext;
    //默认是Session分享给朋友,Timeline是朋友圈,Favorite是收藏
    req.scene = WXSceneSession;

相关文章

网友评论

      本文标题:微信分享不用友盟的

      本文链接:https://www.haomeiwen.com/subject/fgwwbxtx.html