I want to get the users facebook profile picture and save it to a folder inside the project folder. By using this I can get the facebook pic; it displays the pic. Is there any possible way to download this picture and store inside a particular folder?
function getPhoto()
{
FB.api('/me/picture?type=normal', function(response) {
var str="<br/><b>Pic</b> : <img src='"+response.data.url+"'/>";
document.getElementById("status").innerHTML+=str;
});