Home  >  Article  >  Backend Development  >  调用新浪API删除不了微博怎么处理

调用新浪API删除不了微博怎么处理

WBOY
WBOYOriginal
2016-06-13 13:51:37725browse

调用新浪API删除不了微博怎么办?
$c = new WeiboClient( WB_AKEY , WB_SKEY , $_SESSION['last_key']['oauth_token'] , $_SESSION['last_key']['oauth_token_secret'] );
$me = $c->verify_credentials();
$sid = $me[0]['id'];
$result = $c->destroy($sid);
echo $result;
以上输出$result为空。程序没有报错,但也没有删除微博,本人感觉是$sid的问题,但不知道如何解决?请高手指点。

------解决方案--------------------
看一下是否有权限,报什么错

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn