From dd505a9e0c959147e9431bbb3e5681ada30be0e4 Mon Sep 17 00:00:00 2001 From: burc sahinoglu Date: Tue, 10 Jul 2012 11:31:39 -0700 Subject: [PATCH 1/2] fix for issue #2 the signature of the callback used by the get method was changed to support an err parameter. this wasn't reflected in the call to me() --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3bb5476..5894fd6 100644 --- a/index.js +++ b/index.js @@ -103,7 +103,7 @@ var FaceplateSession = function(plate, signed_request) { this.me = function(cb) { if (self.token) { - self.get('/me', function(me) { + self.get('/me', function(err, me) { cb(me); }); } else { From a3f1b01ef17f6728c0d179b8c325f07c80345155 Mon Sep 17 00:00:00 2001 From: burc sahinoglu Date: Tue, 10 Jul 2012 11:35:56 -0700 Subject: [PATCH 2/2] related fix for issue #2 the app function had the same invalid callback signature --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5894fd6..0ecc25d 100644 --- a/index.js +++ b/index.js @@ -96,7 +96,7 @@ var FaceplateSession = function(plate, signed_request) { } this.app = function(cb) { - self.get('/' + self.plate.app_id, function(app) { + self.get('/' + self.plate.app_id, function(err, app) { cb(app); }); }