Facebook Graph API - How do you retrieve the different size photos from an album?

后端 未结 3 1405
孤城傲影
孤城傲影 2020-12-13 06:55

Ok, first off let me tell you I have no problems getting a user\'s photo album(s) and looping through the output to display all of the photos in the size I want.

Ho

3条回答
  •  失恋的感觉
    2020-12-13 07:22

    here src_big and src are different size image url source

        function get_photos_by_album_id($album_id){
    
     if($album_id)
         $fql            =   'SELECT pid,src_big,owner,link,position,created,caption,src      FROM photo WHERE aid="'.$album_id.'" ORDER BY created DESC LIMIT 0,6';
    
                $param  =   array(
                'method'    => 'fql.query',
                'query'     => $fql,
                'callback'  => ''
            );
            $fqlResult   =   $this->facebook->api($param);
        return $fqlResult;
    
     }
    

提交回复
热议问题