diff --git a/services/web/app/views/referal/bonus.jade b/services/web/app/views/referal/bonus.jade index 6c83c67967..5b0183d9c1 100644 --- a/services/web/app/views/referal/bonus.jade +++ b/services/web/app/views/referal/bonus.jade @@ -143,8 +143,9 @@ block content function callback(response) { // document.getElementById('msg').innerHTML = "Post ID: " + response['post_id']; } - - FB.ui(obj, callback); + if (typeof FB !== "undefined" && FB !== null) { + FB.ui(obj, callback); + } } script(type="text/javascript").