I am trying to request a profile image through the Javascript SDK.
I do not want a link to the api chart , I want to get the src_big link.
I have the following code:
FB.api("/me", {fields: "id,name,picture"}, function(response) { alert( response.picture ); FB.api( { method: 'fql.query', query: 'SELECT pid, src_big, src_big_height, src_big_width FROM photo WHERE aid IN ( SELECT aid FROM album WHERE owner="' + response.id + '" AND name = "Profile Pictures")' }, function(data1) { alert('BIG ' + data1.pic_big ); } ); });
He should give me src_big , but that is not the case. Has anyone been successful with this?
source share