I am trying to get all images from facebook group using facebook API
I have a problem: I can not get all the photos using
$facebook->api_client->call_method('Photos.get', array('subj_id' => $uid));
http://wiki.developers.facebook.com/index.php/Photos.get
what i am using now is the method
$albums = $facebook->api_client->photos_getAlbums($uid, NULL);
http://wiki.developers.facebook.com/index.php/Photos.getAlbums
and then looping over the album
$facebook->api_client->call_method('Photos.get', array('subj_id' => $uid));
then i add each new array to my large array
$big_array = array_merge($big_array,$result_array_from_that_call);
There are 2 problems here:
1- sometimes these calls fail - I think due to too many calls per second -
2- the request takes v.long time to process
Is there a better way to do this?
Thanks guys,
Greetings
EDIT :: I tried to get all the images using
$facebook->api_client->call_method('Photos.get', array('subj_id' => $uid));
$uid , . " , , "