title: Get Facebook profile picture using API and save it to a project folder
body: <p>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?</p>
  
  <pre><code>function getPhoto()
      {
        FB.api('/me/picture?type=normal', function(response) {
  
            var str="&lt;br/&gt;&lt;b&gt;Pic&lt;/b&gt; : &lt;img src='"+response.data.url+"'/&gt;";
            document.getElementById("status").innerHTML+=str;
  
      });
  </code></pre>