Comments on: Proper way to include Facebook SDK for Javascript and jQuery … https://www.nivas.hr/blog/2016/10/29/proper-way-include-facebook-sdk-javascript-jquery/ This is a blog from the Nivas.hr crew to the galaxy of unknown. Mon, 31 Jul 2017 19:51:49 +0000 hourly 1 https://wordpress.org/?v=5.8.2 By: Alex https://www.nivas.hr/blog/2016/10/29/proper-way-include-facebook-sdk-javascript-jquery/comment-page-1/#comment-1091361 Mon, 31 Jul 2017 19:51:49 +0000 https://www.nivas.hr/blog/?p=2514#comment-1091361 Thank you for the tip !

But check you will have in this case an “Uncaught ReferenceError: updateStatusCallback is not defined”.

Just replace with :

FB.getLoginStatus(function(){
alert(‘Status updated!!’);
// Your logic here
});

see: https://stackoverflow.com/questions/20986278/updatestatuscallback-not-defined-on-facebook-examble-of-jquery

]]>