user1645198
user1645198

Reputation: 95

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.

E.g.:

enter image description here

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?

Upvotes: 0

Views: 610

Answers (2)

Jonathan_Ng
Jonathan_Ng

Reputation: 66

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

Upvotes: 0

Paresh Navadiya
Paresh Navadiya

Reputation: 38249

Use this:

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

Upvotes: 2

Related Questions