added null check on Facebook

This commit is contained in:
Henry Oswald 2015-02-18 22:25:58 +00:00
parent 5d09999da5
commit ad5de0e93a

View file

@ -143,8 +143,9 @@ block content
function callback(response) { function callback(response) {
// document.getElementById('msg').innerHTML = "Post ID: " + response['post_id']; // document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
} }
if (typeof FB !== "undefined" && FB !== null) {
FB.ui(obj, callback); FB.ui(obj, callback);
}
} }
script(type="text/javascript"). script(type="text/javascript").