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

Dropbox API Redirection Loop (Solved)

php redirect dropbox dropbox-api

I am using php sdk provided by Dropbox Core API. I have a minor bug... My file is being redirected all the time even I click on the allow button... Below is my index file:

Bind ComboBox to DataSet in code behind (no XAML)

c# combobox datatable

How to bind a Combo Box to DataSet in code behind, without using XAML at all:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.