Skip to content

Commit

Permalink
Adds function to backpack controller for Facebook sharing.
Browse files Browse the repository at this point in the history
  • Loading branch information
davelester committed Mar 11, 2013
1 parent cc84781 commit 0db3394
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/backpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ exports.facebookSharing = function (request, response, callback) {
var user = request.user;

fb.publishBadge(accessToken, badgeBodyHash, userId, function(error, response) {

if (error) {
request.flash('error', 'There was an error sharing your badge on Facebook.');
} else {
Expand Down

0 comments on commit 0db3394

Please sign in to comment.