欢迎来到Doc100.Net免费学习资源知识分享平台!
您的位置:首页 > 程序异常 >

使用sharesdk将信息分享到qq空间出现异常

更新时间: 2014-01-05 02:37:06 责任编辑: Author_N1

 

使用ShareSDK将信息分享到qq空间出现错误
2013-02-22 11:57:15.722 ProjectName[4308:19d03] 分享失败,错误码:100031,错误描述:app has no privilege to use this api
调用的函数是
    //shareContentWithShareList 直接将信息分享道qq空间中
    [ShareSDK shareContentWithShareList:[ShareSDK getShareListWithType:ShareTypeQQSpace,nil]
                                content:[ShareSDK publishContent:CONTENT
                                                  defaultContent:@""
                                                           image:[UIImage imageNamed:@"closeSel.png"] //分享的图片资源
                                                    imageQuality:0.8
                                                       mediaType:SSPublishContentMediaTypeNews
                                                           title:@"ShareSDK"
                                                             url:@"http://www.sharesdk.cn"
                                                    musicFileUrl:nil
                                                         extInfo:nil
                                                        fileData:nil]
                          statusBarTips:YES
                                 result:^(ShareType type, SSPublishContentState state, id<ISSStatusInfo> statusInfo, id<ICMErrorInfo> error, BOOL end) {
                                     if (state == SSPublishContentStateSuccess)
                                     {
                                         NSLog(@"分享成功");
                                     }
                                     else if (state == SSPublishContentStateFail)
                                     {
                                         NSLog(@"分享失败,错误码:%d,错误描述:%@", [error errorCode], [error errorDescription]);//最后程序在这里出现:分享失败,错误码:100031,错误描述:app has no privilege to use this api
上一篇:上一篇
下一篇:下一篇

 

随机推荐程序问答结果

 

 

如对文章有任何疑问请提交到问题反馈,或者您对内容不满意,请您反馈给我们DOC100.NET论坛发贴求解。
DOC100.NET资源网,机器学习分类整理更新日期::2014-01-05 02:37:06
如需转载,请注明文章出处和来源网址:http://www.doc100.net/bugs/t/12169/
本文WWW.DOC100.NET DOC100.NET版权所有。