Facebook Graph and PHP API
Posted
by Wes
on Stack Overflow
See other posts from Stack Overflow
or by Wes
Published on 2010-05-11T04:59:19Z
Indexed on
2010/05/11
5:04 UTC
Read the original article
Hit count: 408
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?
© Stack Overflow or respective owner