I'm using that snippet below to get info of my contacts, works fine, I just need to know how to change the size of the picture I get, currently I'm getting a very small pic. I searched through Facebook docs and found nothing.
FB.api('/me/friends', { fields: 'id, name, picture', limit: 3 }, function(response)
{
if (response.error)
{
alert(JSON.stringify(response.error));
}
else
{
alert("Loading friends...");
console.log("fdata: " + response.data);
response.data.forEach(function(item)
{
// feeding my html
});
}
});
Thanks!
Ps.: I'm using a Phonegap plugin to use Facebook API. Probably, the JS methods I'm calling are calling Java methods, so, I don't know which especifically API I'm using, but seems to me the default Graph Api.