I am trying to use PHP SDK V4 to retrieve 'Facebook Page Ratings' in my website's page. For that I created an fb app, and got a page access token from Graph API Explorer.
As described in this link. My code was working properly when I access ONLY page details
$request = new FacebookRequest(
$session,
'GET',
'/{page-id}'
);
But when I try to retrieve ratings of that Facebook page as described here-
$request = new FacebookRequest(
$session,
'GET',
'/{page-id}/ratings'
);
I get following Error-
Fatal error: Uncaught exception 'Facebook\FacebookPermissionException' with message '(#210) Subject must be a page.'.......
Why is that? Please Help!