I’m trying to query the Profile picture via the Javascript SDK.
I do not want the graph api link, I want to get the src_big link.
I have 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 );
}
);
});
It should give me the src_big but it does not.
Has anyone had any success with this?
The problem was not while querying it, the problem was while accessing the object.
It has to be accessed in a weird way.
Thank you