how to specify photo type with Facebook PHP API -


i'm new php , facebook , i'm trying specify want album photos in small type. i'm sure once see how easy can work out how send arguments request. i'm working with:

// albums $albums = $facebook->api('/me/albums'); foreach($albums['data'] $album) {     // photos album     $photos = $facebook->api("/{$album['id']}/photos");      foreach($photos['data'] $photo)     {         echo "<img src='{$photo['source']}' />", "<br />";     } } 

how send want type=small

$photos = $facebook->api("/{$album['id']}/photos?type=small"); 

this isn't working

thanks

// session object returns array contains [session_key], [uid], [expires], [secret], [base_domain], [access_token], , [sig] 

$session = $facebook->getsession();

// want our session access_tokken photos. , photos of type = small

$photos = $facebook->api("/".$album['id']."/photos?access_tokken=".$session['access_token']."&type=small");


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -