<?php session_start(); include_once 'config.php'; include_once 'weibooauth.php'; $c = new WeiboClient(WB_AKEY, WB_SKEY, $_SESSION['last_key']['oauth_token'], $_SESSION['last_key']['oauth_token_secret']); echo "weibolist-bp-1<br>"; $ms = $c->public_timeline(5, 0); // done echo "weibolist-bp-2<br>"; $me = $c->verify_credentials(); echo "weibolist-bp-3<br>"; ?> <h2><?php echo $me['name']; ?> 你好~ 要换头像么?</h2> <form action="weibolist.php" > <input type="text" name="avatar" style="width:300px" value="头像url" /> <input type="submit" /> </form> <h2>发送新微博</h2> <form action="weibolist.php" > <input type="text" name="text" style="width:300px" /> <input type="submit" /> </form> <h2>发送图片微博</h2> <form action="weibolist.php" > <input type="text" name="text" style="width:300px" value="文字内容" /> <input type="text" name="pic" style="width:300px" value="图片url" />