facebook-node-sdk
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -891,3 +891,3 @@ var https = require('https'); | ||
else { | ||
var responseParams = querystring.parse(responseParams); | ||
var responseParams = querystring.parse(accessTokenResponse); | ||
if (!responseParams.hasOwnProperty('access_token')) { | ||
@@ -894,0 +894,0 @@ callback(null, false); |
{ | ||
"name": "facebook-node-sdk", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Node.js SDK for the Facebook API", | ||
@@ -5,0 +5,0 @@ "tags": ["facebook"], |
@@ -488,3 +488,11 @@ var path = require('path'); | ||
assert.equal(response, false); | ||
done = true; | ||
facebook.oauthRequest = function(host, path, params, callback) { | ||
callback(null, 'access_token=dummy-access-token&expires=3600'); | ||
}; | ||
facebook.getAccessTokenFromCode('dummy', 'http://example.com/', function(err, response) { | ||
assert.equal(err, null); | ||
assert.equal(response, 'dummy-access-token'); | ||
done = true; | ||
}); | ||
}); | ||
@@ -491,0 +499,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84011
2459