title: While loggin in via fb to website, my function TestApi doesn't collect user data
body: <p>I am trying to create login via facebook on the website. Unfortunately, while user is logged in and the function TestAPI() is triggered, I can't get the data from the user.</p>
  
  <pre><code> function TestAPI(){ 
     FB.api('/me?fields=id,name,email', function response (){
       if (response &amp;&amp; !response.error){
         console.log(response); 
         buildProfile (response);
       }
     })
   } 
  
   function buildProfile(user){
     let profile = `
       &lt;h3&gt; $(user.name)&lt;/h3&gt;
       &lt;p&gt; $(user.id) &lt;/h3&gt;
       &lt;p&gt; $(user.email) &lt;/h3&gt;`; 
  
     document.getElementById('profile').innerHTML = profile; 
   }
  </code></pre>
  
  <p>I've got following communicates in console:</p>
  
  <pre><code>sdk.js:108 Uncaught TypeError: Cannot set property 'innerHTML' of 
  null 
  at buildProfile (volunteer_system.html:65)
  at response (volunteer_system.html:50)
  at a.__wrapper.a.__wrapper (sdk.js:108)
  at D (sdk.js:123)
  at Object.b.onload (sdk.js:119)
  at sdk.js:119
  at sdk.js:50
  at XMLHttpRequest.c.onreadystatechange (sdk.js:119)
  </code></pre>