【ShareSDK社会化分享】新浪微博分享网络图片问题

来源:互联网 发布:neo数码兽数据库 编辑:程序博客网 时间:2024/04/25 04:19


新浪通过审核后分享网络图片时报错
    {"error":"Insufficient apppermissions!","error_code":10014,"request":"/2/statuses/upload_url_text.json"};

浪微博支持分享网络图片,但是这个需要高级微博写入权限,因此如果您需要分享网络图片,请申请权限以后,将图片Url设置给

SinaWeibo.ShareParams.setImageUrl(imageUrl)即可。下面详细描述一下申请此权限的方法:

    1)进入您的应用详情,并选择“接口管理”—“申请权限”。

    2)在右侧展开的页面中展开“微博高级写入接口”,会看到“statuses/upload_url_text”。勾选分组左侧的复选框。

    3)滚动页面到底部,填写申请理由,然后“提交申请”。


如图所示:


新浪微博API错误代码说明对照表:

直入正文,微博平台错误代码分为两种:系统级错误代码(以数字1开头)、:服务级错误代码(以数字2开头),错误代码以JSON格式返回给客户端的。如下所示:

{"request" : "/statuses/update.json","error_code" : "10006","error" : "Source paramter (appkey) is missing."}

下面分别是系统级错误代码与服务级错误代码的详细对照表(提示:使用Ctrl+F组合键查询错误码更方便)

系统级错误代码

错误代码错误信息详细描述10001System error系统错误10002Service unavailable服务暂停10003Remote service error远程服务错误10004IP limitIP限制不能请求该资源10005Permission denied, need a high level appkey该资源需要appkey拥有授权10006Source paramter (appkey) is missing缺少source (appkey) 参数10007Unsupport mediatype (%s)不支持的MediaType (%s)10008Param error, see doc for more info参数错误,请参考API文档10009Too many pending tasks, system is busy任务过多,系统繁忙10010Job expired任务超时10011RPC errorRPC错误10012Illegal request非法请求10013Invalid weibo user不合法的微博用户10014Insufficient app permissions应用的接口访问权限受限10016Miss required parameter (%s) , see doc for more info缺失必选参数 (%s),请参考API文档10017Parameter (%s)’s value invalid, expect (%s) , but get (%s) , see doc for more info参数值非法,需为 (%s),实际为 (%s),请参考API文档10018Request body length over limit请求长度超过限制10020Request api not found接口不存在10021HTTP method is not suported for this request请求的HTTP METHOD不支持,请检查是否选择了正确的POST/GET方式10022IP requests out of rate limitIP请求频次超过上限10023User requests out of rate limit用户请求频次超过上限10024User requests for (%s) out of rate limit用户请求特殊接口 (%s) 频次超过上限

服务级错误代码

错误代码错误信息详细描述20001IDs is nullIDs参数为空20002Uid parameter is nullUid参数为空20003User does not exists用户不存在20005Unsupported image type, only suport JPG, GIF, PNG不支持的图片类型,仅仅支持JPG、GIF、PNG20006Image size too large图片太大20007Does multipart has image请确保使用multpart上传图片20008Content is null内容为空20009IDs is too manyIDs参数太长了20012Text too long, please input text less than 140 characters输入文字太长,请确认不超过140个字符20013Text too long, please input text less than 300 characters输入文字太长,请确认不超过300个字符20014Param is error, please try again安全检查参数有误,请再调用一次20015Account or ip or app is illgal, can not continue账号、IP或应用非法,暂时无法完成此操作20016Out of limit发布内容过于频繁20017Repeat content提交相似的信息20018Contain illegal website包含非法网址20019Repeat conetnt提交相同的信息20020Contain advertising包含广告信息20021Content is illegal包含非法内容20022Your ip’s behave in a comic boisterous or unruly manner此IP地址上的行为异常20031Test and verify需要验证码20032Update success, while server slow now, please wait 1-2 minutes发布成功,目前服务器可能会有延迟,请耐心等待1-2分钟---20101Target weibo does not exist不存在的微博20102Not your own weibo不是你发布的微博20103Can’t repost yourself weibo不能转发自己的微博20104Illegal weibo不合法的微博20109Weibo id is null微博ID为空20111Repeated weibo text不能发布相同的微博---20201Target weibo comment does not exist不存在的微博评论20202Illegal comment不合法的评论20203Not your own comment不是你发布的评论20204Comment id is null评论ID为空---20301Can’t send direct message to user who is not your follower不能给不是你粉丝的人发私信20302Illegal direct message不合法的私信20303Not your own direct message不是属于你的私信20305Direct message does not exist不存在的私信20306Repeated direct message text不能发布相同的私信20307Illegal direct message id非法的私信ID---20401Domain not exist域名不存在20402Wrong verifierVerifier错误---20501Source_user or target_user does not exists参数source_user或者target_user的用户不存在20502Please input right target user id or screen_name必须输入目标用户id或者screen_name20503Need you follo
w user_id参数user_id必须是你关注的用户20504Can not follow yourself你不能关注自己20505Social graph updates out of rate limit加关注请求超过上限20506Already followed已经关注此用户20507Verification code is needed需要输入验证码20508According to user privacy settings,you can not do this根据对方的设置,你不能进行此操作20509Private friend count is out of limit悄悄关注个数到达上限20510Not private friend不是悄悄关注人20511Already followed privately已经悄悄关注此用户20512Please delete the user from you blacklist before you follow the user你已经把此用户加入黑名单,加关注前请先解除20513Friend count is out of limit!你的关注人数已达上限20521Hi Superman, you have concerned a lot of people, have a think of how to make other people concern about you! ! If you have any questions, please contact Sina customer service: 400 690 0000hi 超人,你今天已经关注很多喽,接下来的时间想想如何让大家都来关注你吧!如有问题,请联系新浪客服:400 690 000020522Not followed还未关注此用户20523Not followers还不是粉丝20524Hi Superman, you have cancelled concerning a lot of people, have a think of how to make other people concern about you! ! If you have any questions, please contact Sina customer service: 400 690 0000hi 超人,你今天已经取消关注很多喽,接下来的时间想想如何让大家都来关注你吧!如有问题,请联系新浪客服:400 690 0000---20601List name too long, please input text less than 10 characters列表名太长,请确保输入的文本不超过10个字符20602List description too long, please input text less than 70 characters列表描叙太长,请确保输入的文本不超过70个字符20603List does not exists列表不存在20604Only the owner has the authority不是列表的所属者20605Illegal list name or list description列表名或描叙不合法20606Object already exists记录已存在20607DB error, please contact the administator数据库错误,请联系系统管理员20608List name duplicate列表名冲突20610Does not support private list目前不支持私有分组20611Create list error创建列表失败20612Only support private list目前只支持私有分组20613You hava subscriber too many lists订阅列表达到上限20614Too many lists, see doc for more info创建列表达到上限,请参考API文档20615Too many members, see doc for more info列表成员上限,请参考API文档---20701Repeated tag text不能提交相同的收藏标签20702Tags is too many最多两个收藏标签20703Illegal tag name收藏标签名不合法---20801Trend_name is null参数trend_name是空值20802Trend_id is null参数trend_id是空值---20901Error: in blacklist错误:已经添加了黑名单20902Error: Blacklist limit has been reached.错误:已达到黑名单上限20903Error: System administrators can not be added to the blacklist.错误:不能添加系统管理员为黑名单20904Error: Can not add yourself to the blacklist.错误:不能添加自己为黑名单20905Error: not in blacklist错误:不在黑名单中---21001Tags parameter is null标签参数为空21002Tags name too long标签名太长,请确保每个标签名不超过14个字符---21101Domain parameter is error参数domain错误21102The phone number has been used该手机号已经被使用21103The account has bean bind phone该用户已经绑定手机21104Wrong verifierVerifier错误---21301Auth faild认证失败21302Username or password error用户名或密码不正确21303Username and pwd auth out of rate limit用户名密码认证超过请求限制21304Version rejected版本号错误21305Parameter absent缺少必要的参数21306Parameter rejectedOAuth参数被拒绝21307Timestamp refused时间戳不正确21308Nonce used参数nonce已经被使用21309Signature method rejected签名算法不支持21310<
/td>Signature invalid签名值不合法21311Consumer key unknown参数consumer_key不存在21312Consumer key refused参数consumer_key不合法21313Miss consumer key参数consumer_key缺失21314Token usedToken已经被使用21315Token expiredToken已经过期21316Token revokedToken不合法21317Token rejectedToken不合法21318Verifier failPin码认证失败21319Accessor was revoked授权关系已经被解除21320OAuth2 must use https使用OAuth2必须使用https21321Applications over the unaudited use restrictions未审核的应用使用人数超过限制21327Expired tokentoken过期---21501Urls is null参数urls是空的21502Urls is too many参数urls太多了21503IP is nullIP是空值21504Url is null参数url是空值---21601Manage notice error, need auth需要系统管理员的权限21602Contains forbid world含有敏感词21603Applications send notice over the restrictions通知发送达到限制---21701Manage remind error, need auth提醒失败,需要权限21702Invalid category无效分类21703Invalid status无效状态码---21901Geo code input error地理信息输入错误
0 0