Merge pull request #27433 from edx/tuchfarber/fix_facebook_share
fix: Add callback function to Facebook share
This commit is contained in:
@@ -21,13 +21,18 @@ var FaceBook = (function() {
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
},
|
||||
share: function(feed_data) {
|
||||
FB.ui({
|
||||
method: 'feed',
|
||||
name: feed_data.share_text,
|
||||
link: feed_data.share_link,
|
||||
picture: feed_data.picture_link,
|
||||
description: feed_data.description
|
||||
});
|
||||
FB.ui( // eslint-disable-line no-undef
|
||||
{
|
||||
method: 'feed',
|
||||
name: feed_data.share_text,
|
||||
link: feed_data.share_link,
|
||||
picture: feed_data.picture_link,
|
||||
description: feed_data.description
|
||||
},
|
||||
// The Facebook API now requires a callback. Since we weren't doing anything after posting before,
|
||||
// I'm leaving this as an empty function.
|
||||
function(response) {} // eslint-disable-line no-unused-vars
|
||||
);
|
||||
}
|
||||
};
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user