in FB's // XML format into the array $entry = $xml->channel->item; // This is just a blank string I create to add to as I loop through our // FB feed. Feel free to format however you want, or do whatever else // you want with the data. $returnMarkup = ''; // Now we'll loop through are array. I just have it going up to 3 items // for this example. for ($i = 0; $i < 3; $i++) { $returnMarkup .= "

".$entry[$i]->title."

"; // Title of the update $returnMarkup .= "

".$entry[$i]->link."

"; // Link to the update $returnMarkup .= "

".$entry[$i]->description."

"; // Full content $returnMarkup .= "

".$entry[$i]->pubDate."

"; // The date published $returnMarkup .= "

".$entry[$i]->author."

"; // The author (Page Title) } // Finally, we return (or in this case echo) our formatted string with our // Facebook page feed data in it! echo $returnMarkup; ?>