Can't get Facebook's user photos with php
- by Liso22
I'm trying to get the user photos, but I cannot get the user's photos data.
I'm trying this:
$photos = $facebook->api('https://graph.facebook.com/'.$profileFID.'/photos?access_token='.$access_token);
print_r($photos);
I'm sure the URL is correct since pasting it in the browser shows the photos array. However when I try to print the array to check if I got it I get only this:
( [id] => https://graph.facebook.com/1409006586/photos )
How can I get the full array with the user photos?