0
我有以下代码(从实际脚本获取):TwitterOAuth对象:类stdClass的的对象无法转换为字符串
$result=mysql_query($sql);
while($row=mysql_fetch_assoc($result))
{
$auth_token=$row['oauth_token'];
$auth_token_secret=$row['oauth_token_secret'];
$apiconn = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $auth_token, $auth_token_secret);
$API_result = $apiconn->post('friendships/create', array('screen_name' => $uname));
echo $API_result . "<br />";
}
我不断收到错误:
Catchable fatal error: Object of class stdClass could not be converted to string in scriptpath on line 26
线26
$apiconn = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $auth_token, $auth_token_secret);
我不知道为什么会发生这种情况,因为从that library的例子也一样出生成错误:(。
是的,它错误地计算出PHP计数行:( – ariefbayu 2010-09-18 23:27:26