I am trying to fetch the photos of a user from facebook using php api. Currently I don't have permissions to fetch the photos from facebook. But I am using the same id which has been used to create the facebook app. I heard that we can use the same id (the one used to create the app) for testing everything from facebook. My code for fetching user photos is :-
$request = new FacebookRequest(
$session,
'GET',
'/{user-id}/photos'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
Response of the above code :- Array()
It is returning a blank array. Is it because I do not have permissions to fetch photos or any other reason?