JSFiddle - React, Tailwind, and code Playground
HTML
<div id="results"></div>
CSS
body {
background-color: silver;
}
#results {
margin: 20px;
}
.newFeedTitle, .newFeed {
width: 300px;
background-color: lightblue;
margin: 5px;
padding: 5px;
border: 2px solid green;
font-family: "arial";
font-size: 18px;
color: purple;
cursor: hand;
cursor: pointer;
}
.newFeedTitle {
background-color: #3E699B;
color: white;
font-size: 20px;
line-height: 24px;
margin-left: 20px;
}
.newFeedLogo {
margin-bottom: -12px;
margin-left: -5px;
border: 2px solid green;
}
JavaScript
$.ajax({
url: "http://query.yahooapis.com/v1/public/yql",
dataType: "jsonp",
success: function(data) {
// Process Each New Feed Posted
$.each(data.query.results.json.entries, function(i, v) {
// If Current New Feed Is Empty Residue, do not show
if (data.query.results.json.entries[i].title.length > 1) {
// Display the current results of the New Feed
$('#results').append('<span class="newFeedTitle">Facebook Feed Index: ' + i + '</span><img class="newFeedLogo" src="http://www.gravatar.com/avatar/2fcde43df28f22b343031716cc7455a3?s=33&d=identicon&r=PG" /><br /><div class="newFeed">' + data.query.results.json.entries[i].content + '</div><br /><br />');
}
});
},
data: {
q: 'select * from json where url="https://www.facebook.com/feeds/page.php?id=112706495458566&format=json"',
format: "json"
}
});