简体   繁体   中英

How can we get the original Size of uploaded pics in facebook Graph Api (not profile Picture) Only the Uploaded pics?

I am Getting the images like this ,its working but the size of Image is Small Want to Get the Original Size? How can i get the Full Size of Uploaded Images?

GET /{user-id}/photos?type=uploaded

    try 
    {
        if($fbtype =='pages') {
            $response = $fb->get('/'.$fbid.'?fields=picture.type(large),photos.type(uploaded){link,picture,height,width,enum},name,about,phone,feed,emails',$fbtoken);
        } else {
            $response = $fb->get('/'.$fbid.'?fields=picture.type(large),photos.limit(12){name, picture.type(normal)},name,about,feed,email',$fbtoken);
        }
    } catch(FacebookResponseException $e) {
        echo 'Graph returned an error: ' . $e->getMessage();
        exit;
    } catch(FacebookSDKException $e) {
        echo 'Facebook SDK returned an error: ' . $e->getMessage();
        exit;
    }

Welcome! NOTE: you should always post code examples of what you have already tried.

Based purely on your non-code post though...

From your request you will have a list of Photo nodes. It looks like if you GET the photo by ID you have an element called 'images' which will give you a list of all the image files (including dimensions) attached to the photo .

https://developers.facebook.com/docs/graph-api/reference/photo/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM