Refactor the try code in the callFB.php