$(window).load(function(){
	//FB.init({appId: '222996857727626', status: true, cookie: true, xfbml: true});
	
	/*FB.Event.subscribe('auth.login',function(response){
		$.ajax({
			type:"POST", 
			url:"facebook/login.php",
			dataType:"json",
			error: function (XMLHttpRequest, textStatus, errorThrown){},
			data:'data='+response,
			timeout:2000,
			success: fb_respuesta
		});
	});*/
})

function fb_respuesta(data){
	alert('hecho');	
	//window.location.reload();
}

	
/*}, {perms:'read_stream,publish_stream,offline_access'});*/

