Twitter状态更新api不起作用

我正在尝试使用这个示例程序来推特,并得到一个错误,我正在按照这个教程

这是代码

var Twitter = require('twitter'); var client = new Twitter({ consumer_key: 'CONSUMER_KEY', consumer_secret: 'CONSUMER_SECRET', access_token: 'ACCESS_TOKEN', access_token_secret: 'ACCESS_TOKEN_SECRET' }); //var stat = ["First Tweet","Second Tweet","Third Tweet","Forth Tweet","Fifth Tweet"]; client.post('statuses/update', {status: 'I Love Twitter'}, function(error, tweet, response){ if(error) throw error; console.log(tweet); // Tweet body. console.log(response); // Raw response object. }); 

每当我运行这个代码,我收到以下错误

 E:\Local server\nodejs\status_update\test.js:12 if(error) throw error; ^ [object Object] 

Solutions Collecting From Web of "Twitter状态更新api不起作用"