Hey all i am trying to get a news feed (home feed) but this doesnt seem to work:
<?php
require '../src/facebook.php';
$facebook = new Facebook(array(
'appId' => 'XXXXXXXXXXXXXXXX',
'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
'fileUpload' => true,
'cookie' => true
));
$user = $facebook->getUser();
if ($user) {
try {
$user_profile = $facebook->api('/me');
$access_token = $facebook->getAccessToken();
$feed = $facebook->api('/me/home?access_token=' . $access_token);
print_r($feed);
etc etc....
If i comment out the $feed and also print_r($feed) line then it works and displays my user information. However, leaving it un-commented out seems to stop it from proceeding to display other things.
I have also tried:
$feed = $facebook->api('/me/home);
and that still produces nothing.
For my app center permissions, i have set the permissions needed to do this (read_stream) among others.
What am i missing?