Facebook login in a web app
<p>I am trying to implement facebook login in my web application. i got the app id and my code is as follows.`
    
      My Facebook Login Page
    
    </p>

<pre><code>  &lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;script&gt;
    window.fbAsyncInit = function() {
      FB.init({
        appId      : '&lt;&lt;App Id&gt;&gt; ', // App ID
        channelUrl : '//www. DOMAIN NAME.com/channel.html', // Channel File
        status     : true, // check login status
        cookie     : true, // enable cookies to allow the server to access the session
        xfbml      : true  // parse XFBML
      });
      // Additional initialization code here
    };
    // Load the SDK Asynchronously
    (function(d){
       var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
       if (d.getElementById(id)) {return;}
       js = d.createElement('script'); js.id = id; js.async = true;
       js.src = "//connect.facebook.net/en_US/all.js";
       ref.parentNode.insertBefore(js, ref);
     }(document));
  &lt;/script&gt;&lt;div class="fb-login-button"&gt;&lt;a href=" "&gt;Login with Facebook&lt;/a&gt;&lt;/div&gt;
&lt;/body&gt;
</code></pre>

<p>
`. I am trying to run this and its giving an error for my app. I also got the secret key but dont know where exactly to place it. Do we need to place any css or js or any other files for this ??</p>

<p>Any help is greatly appreciated..</p>
