ciaranj/node-oauth — Issue #88: Callback not getting triggered
Author: jgendr2
Created: 2012-02-26 10:19:09+00:00
State: open

I am able to get access_token and access_token_secret back from Twitter, but when I go to make a GET request to the rest api using the supplied get() method, my callback function is not being triggered.

Example:

function consumer() {
return new OAuth(
"https://api.twitter.com/oauth/request_token",
"https://api.twitter.com/oauth/access_token",
_twitterConsumerKey,
_twitterConsumerSecret,
"1.0A",
"http://1.1.1.1/auth/twitter/callback",
"HMAC-SHA1"
);
}

consumer().get("https://api.twitter.com/1/account/verify_credentials.json", req.session.oauthAccessToken, req.session.oauthAccessTokenSecret, function (error, data, response) {
res.send("Callback triggered.");
});

Any suggestions on where to go with this problem? Thanks in advance.