19/08
2015
Wallogit.com
2017 © Pedro Peláez
Open Graph Protocol helper for PHP (forked from scottmac/opengraph)
A small library for making accessing of Open Graph Protocol data easier, (*1)
Keys with a dash (-) in the name are converted to _ for easy access as a property in PHP, (*2)
require_once('OpenGraph.php');
$graph = OpenGraph::fetch('http://www.rottentomatoes.com/m/10011268-oceans/');
var_dump($graph->keys());
var_dump($graph->schema);
foreach ($graph as $key => $value) {
echo "$key => $value";
}