发表微博“错误:10017:text not find domain!”的解决方法
来源:互联网 发布:机房网络管理系统 编辑:程序博客网 时间:2024/06/16 08:35
2017年6月,微博开放平台做调整,写入接口需要都切换到share分享接口。
由于微博开放平台调整,写入接口需要都切换到share分享接口,说明在 http://open.weibo.com/blog/%E3%80%90%E5%B9%B3%E5%8F%B0%E5%85%AC%E5%91%8A%E3%80%91%E5%BE%AE%E5%8D%9A%E5%BC%80%E6%94%BE%E5%B9%B3%E5%8F%B0%E5%88%86%E4%BA%AB%E5%88%B0%E5%BE%AE%E5%8D%9A%E6%8E%A5%E5%8F%A3%E5%8D%87%E7%BA%A7%E5%85%AC 这里。
调用时需要使用$instance->share($status, $pic); 方法,示例:
```$c = new SaeTClientV2( WB_AKEY , WB_SKEY , WB_ACCESSTOKEN );// 待发送的文字内容$status = '发送的文字内容';// 本地一张图片,也可以不带图片$file_local = '5486087cly1fhh2yaksr1j20j60srtd0.jpg';// 拼接'http://weibosdk.sinaapp.com/'是因为这个share接口至少要带上一个【安全域名】下的链接。安全域名特别重要,否则无法正常发表微博。$ret = $c->share($status.'http://weibosdk.sinaapp.com/', $file_local);var_dump($ret);```
用户分享到微博的文本内容,必须做URLencode,内容不超过140个汉字,文本中不能包含“#话题词#”,同时文本中必须包含至少一个第三方分享到微博的网页URL,且该URL只能是该第三方(调用方)绑定域下的URL链接,绑定域在“我的应用 - 应用信息 - 基本应用信息编辑 - 安全域名”里设置。
如果应用类型是“微连接-连接网站”,是没有安全域名的设置。需要新创建“微连接-网页应用”的应用。
阅读全文
0 0
- 发表微博“错误:10017:text not find domain!”的解决方法
- qt5错误can not find -lGL的解决方法
- apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName错误的解决方法
- Sender address<*@*>domain does not exist 的解决方法
- "Could not find mime type application octet-stream"错误的解决方法
- 错误提示:/usr/bin/ld:can not find -lqte 的解决方法
- 错误提示:/usr/bin/ld:can not find -lqte 的解决方法
- could not find git path的解决方法
- Could not find XXX.apk!的解决方法
- Could not find XXX.apk的解决方法
- Could not find XXX.apk!的解决方法
- could not find object错误的解决办法
- iOS开发Post请求错误:Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or ...
- linux cannot find -IGL错误的解决方法
- 安装MyEclipse时,双击安装包后出现“could not find main class”的错误提示的解决方法
- BC31 , floating point error:domain 错误解决方法
- apache重启出现 httpd: Could not reliably determine the server's fully qualified domain name错误解决方法
- "current thread not owner"错误的解决方法
- android 自定义蒙层镂空
- Capstone训练营9
- 超炫的3D特效相册功能android
- 自己记的笔记
- NOIP2017 D1T1 小凯的疑惑
- 发表微博“错误:10017:text not find domain!”的解决方法
- 生成二维码(QRCode)图片加LOGO
- 编译原理之代码生成
- 每天一个linux命令(6):rmdir 命令
- Animation遇到的小坑及简单的Animator使用
- 最大子段和
- 接触首个项目感想
- Day019
- 机器学习之神经网络模型-上(Neural Networks: Representation)