Total noob here, trying to conditionally append some values to an html object. This is built from sample code I found so be kind...
$.getJSON('url to facebook json feed', function(fbresults){
$.each(fbresults.data, function(){
$('<div></div>')
.append('<h1>' + this.from.name + '</h1>')
.append('<p>' + this.story + '</p>')
$if (typeof this.picture !== "undefined") {
.append('<img src="' + this.picture + '">')};
.appendTo('#facebook')
});
});