How to get 100x100px and 200x200px profile pic from FQL?

i am using this fql query this gives me 50x50px profile pic of user's friend

$FQLQuery = 'SELECT uid,sex,pic_square FROM user WHERE uid in (SELECT uid2 FROM friend WHERE uid1 = me())';

i want to get 100x100px or 200x200px by using fql only.

how i can get that?

Answers


I get the avatar using graph API by the following

$request_url ="https://graph.facebook.com/" .
    $parfbuid . "?fields=picture.width(200).height(200)";
$requests = file_get_contents($request_url);    
$data = json_decode($requests);
$fsource = $data->picture->data->url;
$size=getimagesize($fsource);

and then I use GD library to get this image and save on disk. This way you can get whatever size you like of the rectangle avatar image.


Need Your Help

Slim PHP separate function

php slim

im having problem understanding Slim PHP, by the way i'm new on this framework.

fill div with dynamic images and no gaps

javascript jquery html css

I am using Potomaks Instagram Jquery script to pull images for a certain tag. I have the CSS set to auto-resize the images so that the row will fit across the entire table.