I have some problems with album with more than 25 photos…
my code is:
$albumPictures = $facebook->api('/' . $album .'/photos','GET');
but if I look into $albumPictures I find only 25 photos…
can anyone help me please?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you forgotten to paginate to the next page?
There’s a
pagingentry in the Graph API response withnextandpreviousurls to retrieve the rest of the photos (assuming there were more than 25 photos in the album – the default query is 25 photos)You could also just ask for all photos in a single request by calling
/ALBUM_ID/photos?limit=200