Facebook Graph and PHP API
- by Wes
I've been working at this for a few hours, but the poor documentation is of no help.
All I want to do is grab the data that exists at https://graph.facebook.com/cocacola/ as an example, and I cant even do that.
I'm using the latest php API from facebook.
This is my code, which returns nothing:
<?php
require '../src/facebook.php';
// Create our Application instance.
$facebook = new Facebook(array(
'appId' => '254752073152',
'secret' => '904270b68a2cc3d54485323652da4d14',
'cookie' => true,
));
$coke = $facebook->api('/cocacola');
echo '<pre>';
print_r($coke);
echo '</pre>';
Any idea?