You cannot get the user ID using $_POST['fb_sig_user'] unless you authenticate the user by specifying this in the ajax function on facebook:
ajax.requireLogin = true;
For example, I retrieve it using this:
function do_ajax(url, div_id) { document.getElementById('poller_waitMessage').setStyle('display', 'block'); var ajax = new Ajax(); ajax.responseType = Ajax.FBML; ajax.onerror = function(error) { new Dialog().showMessage("Error:", "Some communication error occured, Please reload the page.","Ok"); }; ajax.ondone = function(data) { document.getElementById('poller_waitMessage').setStyle('display', 'none'); document.getElementById(div_id).setInnerFBML(data); } ajax.requireLogin = true;
source share