Why don't you just use the identifier you already extracted and display the image directly? Why do you need an extra call?
eg
function getFBData () { FB.api('/me', function(response) { fbinfo = new Array(); fbinfo[0] = response.id; fbinfo[1] = response.first_name; fbinfo[2] = response.last_name; fbinfo[3] = response.email; var im = document.getElementById("profileImage").setAttribute("src", "http://graph.facebook.com/" + response.id + "/picture?type=normal"); }); }
For example, http://graph.facebook.com/4/picture?type=normal redirects a Mark Zuck image
If you are having problems, register the URL to make sure you return the correct identifier and paste the URL into the browser.
source share