Skip to content

Commit

Permalink
Adds callback to fb comments async series.
Browse files Browse the repository at this point in the history
  • Loading branch information
davelester committed May 2, 2013
1 parent f839fd1 commit 893ce7f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions controllers/backpack.js
Expand Up @@ -451,9 +451,11 @@ exports.facebookSharing = function (request, response, callback) {
if (error) {
request.flash('error', 'There was an error posting a Facebook comment to your shared badge.');
callback('There was an error posting a Facebook comment to your shared badge.', null);
}
});
}
} else {
callback(null, response);
}
});
}
},
function(callback){
// if FB automatic push was checked:
Expand Down

0 comments on commit 893ce7f

Please sign in to comment.