Reputation: 586
I'm trying to read the page's feed via PHP SDK 4.0 by this request:
$request = new FacebookRequest($session, '/626695570712602/feed', 'GET');
but i'm getting a FacebookAuthorizationException
with message '(#803) Some of the aliases you requested do not exist: v2.0GET
and i'm stuck on it.
Also a I have a bit dummy question: do i need any specific access token to read (public) page's feed? Right now i'm only calling the following to retrieve the session:
FacebookSession::setDefaultApplication("[APP_ID]", "[APP_SECRET]");
$session = FacebookSession::newAppSession();
Upvotes: 0
Views: 1158
Reputation: 4908
Where did you see the syntax: $request = new FacebookRequest($session, '/626695570712602/feed', 'GET');
According to https://github.com/facebook/facebook-php-sdk-v4/blob/3d96359b3b111f7a91b2b52f34fecdcfddfc0171/src/Facebook/FacebookRequest.php#L147-149 it should be:
$request = new FacebookRequest($session, 'GET', '/626695570712602/feed');
Upvotes: 1