The AccessToken request api obtained by xauth authentication was not successful.

  node.js, question

It’s an open source project here.https://github.com/Mashape/ma …
This step should be wrong

oa.post(options, callback);
 oa.get(options, callback);
 oa.delete(options, callback);
 oa.patch(options, callback);
 oa.put(options, callback);
 
 // Alternatively, you can use the old node-oauth style: (Where method is one of five above.)
 oa.method(url, oauth_token, oauth_token_secret, body, type, parameters, callback);

Acess_token was obtained, but when calling api, an error was reported: “invalid ACCESS TOKEN”. Please ask the great god for help to have a look. Thank you very much.

var express = require('express');
 var router = express.Router();
 var OAuth = require('mashape-oauth').OAuth;
 var consumerKey    = 'myconsumerKey';
 var consumerSecret = 'myconsumerSecret';
 var oa = new OAuth({
 accessUrl:"http://fanfou.com/oauth/request_token",
 consumerKey:consumerKey,
 consumerSecret:consumerSecret,
 version:'1.0',
 signatureMethod:'HMAC-SHA1'
 });
 
 /* GET home page. */
 router.get('/', function(req, res, next) {
 res.render('index', { title: 'hello' });
 });
 router.route("/fanfou").get(function(req,res){
 res.render("fanfou",{title:'fanfou'});
 }).post(function(req,res){
 var username = req.body.username;
 var password= req.body.password;
 oa.getXAuthAccessToken(username, password, function (error, oauth_token, oauth_token_secret, results) {
 if (error)
 console.log('err');
 else
 bracket
 /* res.json({
 oauth_token:oauth_token,
 oauth_token_secret:oauth_token_secret
 })*/
 oa.get('http://api.fanfou.com/statuses/home_timeline.json',
 oauth_token,oauth_token_secret,null,null,null,function(error,data){
 res.json({
 data:data
 });
 //console.log(JSON.parse(data));
 });
 bracket
 
 });
 
 });
 module.exports = router;

Finally found out what was wrong

var oa = new OAuth({
 accessUrl:"http://fanfou.com/oauth/request_token",
 consumerKey:consumerKey,
 consumerSecret:consumerSecret,
 version:'1.0',
 signatureMethod:'HMAC-SHA1'
 });

The accessUrl in this is wrong, it should behttp://fanfou.com/oauth/access_token