function getStream(){
	var url = "https://graph.facebook.com/wiliertriestina/feed?limit=10&callback=?";
	var site_image = "http://www.wilier.it/images/anonimo.gif";
	$.getJSON(url,function(json){
		var html = "<ul id=\"comments-list\">";
		var injection_status;
		var injection_link;
		
		var picture;
		var message;
		var author;
		var link;
		var type;
		var uid;
		
		$.each(json.data,function(i,fb){
			

				if(fb.from != undefined) {

				message = fb.message;
				link = fb.link;
				type = fb.type;  
				uid = fb.from.id;				
				picture = "http://graph.facebook.com/"+uid+"/picture";
			
				/*
				if (fb.picture == undefined){
					picture = "http://graph.facebook.com/"+uid+"/picture";
				}else{
					picture = fb.picture;
				}
				*/			

				if(message == undefined){
					//message = fb.name;
					message = "<img style=\"float:none\" src="+fb.picture+">";
				}
				
				if(fb.from.name == undefined){
					author ='';
				}else{
					author = fb.from.name;
				}

				if(fb.from.id == undefined){
					uid ='';
				}else{
					uid = fb.from.id;
				}


				if(fb.type != "status"){
					type = fb.type;
					injection_status = "<p>type:&nbsp;<span class=\"type-fb\">"+type+"</span></p>";
				}else{
					injection_status = "";
				}
				
				if(fb.link == undefined){
					injection_link = '';
				}else{
					link = fb.link;
					injection_link = "<p>link:&nbsp;<a class=\"fb-link\" target=\"_blank\" href=\""+link+"\">Read more</a></p>";
				}
				
				
				html += "<li><img class=\"thumb-facebook\" src="+picture+"><div class=\"wrapper-data-fb\"><span class=\"title-fb\">"+author+"</span>&nbsp;<span class=\"text-fb\">"+message+"</span>"+injection_status+" "+injection_link+"</div><br class=\"clear\"/><div style=\"border-bottom:1px solid #A6A6A6\">&nbsp;</div></li>";
				}

		});

		html += "</ul>";

		$('#stream-wrapper').animate({opacity:0}, 500, function(){
		$('#stream-wrapper').html(html);
		});
		$('#stream-wrapper').animate({opacity:1}, 500);
		
	});
}
