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?
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.