Make an API call to
user_id is the current session user.
You are also using the old PHP SDK
/* PHP SDK v4.0.0 */ /* make the API call */ $request = new FacebookRequest( $session, 'GET', '/me/home' ); $response = $request->execute(); $graphObject = $response->getGraphObject(); /* handle the result */
UPDATE: The latest Graph API doc suggests the following: As of October 6th, 2015, this endpoint is no longer available. Please consider using the /user-id/feed edge instead.
This effectively means we cannot access the user news feed provided by Facebook but will have to rely on /user-id/feed as an alternative.