function fbFetch(){
	

	
var url = "https://graph.facebook.com/mazzios/posts?limit=3&callback=?&access_token=195166467197353|58mNeWA6zWqKC53RI1cS5qXcAQ0";
var pic = "http://profile.ak.fbcdn.net/hprofile-ak-snc4/41786_47808598379_260_s.jpg";
    //alert(url);
	

	
	try{
 $.getJSON(url,function(json){
		
		
    //Use jQuery getJSON method to fetch the data from the url and then create our unordered list with the relevant data.
   
	
	var previousInnerHTML = new String();
	
	previousInnerHTML = document.getElementById('facebookfeed').innerHTML;
	
            //loop through and within data array's retrieve the message variable.
            $.each(json.data,function(i,fb){
			var str = fb.message;
			if(str == undefined){
				var str = fb.name;
			}
			previousInnerHTML = previousInnerHTML.concat("<div id='fbObj'>");
        	previousInnerHTML = previousInnerHTML.concat("<div id='objPic'><a href='http://www.facebook.com/mazzios/' target='_blank'><img src=" + pic + " width='50px' height='50px'></a></div>");
			previousInnerHTML = previousInnerHTML.concat("<div id='objInfo'>");
			previousInnerHTML = previousInnerHTML.concat("<div id='message'>" + str.substring(0, 70)  + "...</div>");
			previousInnerHTML = previousInnerHTML.concat("<div id='date'>Created on " + fb.created_time.substring(0, 10) + " @ " + fb.created_time.substring(11, 19) + "</div>");
			previousInnerHTML = previousInnerHTML.concat("</div>");
			previousInnerHTML = previousInnerHTML.concat("</div>");
			previousInnerHTML = previousInnerHTML.concat("<div class='clear'></div><div id='border'></div>");
            	});
        document.getElementById('facebookfeed').innerHTML = previousInnerHTML;
		//correct feed status
		
	
    });
	
		}catch(err){
		



	
		
	}
	
	


	
};
