facebook-node-sdk
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -21,2 +21,5 @@ var https = require('https'); | ||
} | ||
if (config.hasOwnProperty('currentUrl')) { | ||
this.currentUrl = config.currentUrl; | ||
} | ||
this.setAppId(config.appId); | ||
@@ -36,2 +39,4 @@ this.setApiSecret(config.secret); | ||
BaseFacebook.prototype.currentUrl = null; | ||
BaseFacebook.prototype.sessionNameMap = { | ||
@@ -915,2 +920,6 @@ access_token: 'access_token', | ||
BaseFacebook.prototype.getCurrentUrl = function() { | ||
if (this.currentUrl !== null) { | ||
return this.currentUrl; | ||
} | ||
if (!this.request) { | ||
@@ -917,0 +926,0 @@ throw new Error('No request object.'); |
{ | ||
"name": "facebook-node-sdk", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Node.js SDK for the Facebook API", | ||
@@ -5,0 +5,0 @@ "tags": ["facebook"], |
@@ -204,2 +204,18 @@ var path = require('path'); | ||
facebook = new TransientFacebook({ | ||
appId: config.appId, | ||
secret: config.secret, | ||
currentUrl: 'http://example.com/', | ||
request: { | ||
connection: { | ||
}, | ||
headers: { | ||
host: 'www.test.com' | ||
}, | ||
url: '/unit-tests.php?state=hoge' | ||
} | ||
}); | ||
assert.equal(facebook.getCurrentUrl(), 'http://example.com/'); | ||
done = true; | ||
@@ -206,0 +222,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
84585
2480