forked from scottmac/opengraph
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
scottmac edited this page Sep 14, 2010
·
2 revisions
This is a small helper script to help with the retrieval of pages that contain Open Graph Protocol data.
The code is under the Apache 2.0 License
<?php
require_once('OpenGraph.php');
$o = OpenGraph::fetch('http://www.rottentomatoes.com/m/10011268-oceans/');
if ($o) {
var_dump($o->keys());
var_dump($o->title);
foreach ($o AS $key => $value) {
echo "$key is $value\n";
}
}