Can't get Facebook's user photos with php
Posted
by
Liso22
on Stack Overflow
See other posts from Stack Overflow
or by Liso22
Published on 2012-07-09T08:50:47Z
Indexed on
2012/07/09
9:15 UTC
Read the original article
Hit count: 237
facebook-graph-api
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?
© Stack Overflow or respective owner