简体   繁体   中英

Get Facebook profile picture without resizing in iphone

I am using Facebook graph API to get Facebook details. But I am getting profile image as resized.

Eg:

在此输入图像描述

I tried changing _s to _n. But still am getting size of 180x134 . But original image size is 260 × 194 .

How can I get the original images without resizing in iphone?

用这个:

 http://graph.facebook.com/[page id/profile id]/picture?type=large

If you want to get the exactly image size, you can try fql query

$fql="SELECT id, width, height, url, is_silhouette, real_width, real_height FROM profile_pic WHERE id=me() AND height=260 AND width=194";

$avt = $facebook->api(array(
                         'method'=>'fql.query',
                         'query' =>$fql,
                       ));
$avt = & $avt[0]['url'];

I am using php, you can learn more here

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