title: ng2-facebook-sdk login is not working
body: <p>I was just trying to make a Facebook login. But the following error is showing. I am attaching the screenshot of the error. both in safari and chrome.
  In chrome <a href="https://i.stack.imgur.com/xvMIb.png" rel="nofollow noreferrer">Chrome Login Screen Shot</a></p>
  
  <p>My Facebook login component is like this</p>
  
  <pre><code>export class FacebookLoginComponent implements OnInit {
  
      constructor(private fb: FacebookService) {
          const initParams: InitParams = {
              appId: Config.facebook_api_id,
              xfbml: true,
              version: 'v2.8'
          };
  
          this.fb.init(initParams);
      }
  
      ngOnInit() {
  
      }
  
      loginWithFacebook(): void {
          this.fb.login({scope: 'email, public_profile'})
              .then(
                  (response: LoginResponse) =&gt; {
                      console.log(response);
                  }
              )
             .catch((error: any) =&gt; console.error(error));
  
      }
  }
  </code></pre>
  
  <p><a href="https://github.com/zyra/ng2-facebook-sdk/issues/70" rel="nofollow noreferrer">Github Issue link</a></p>
  
  <p>Need help.TIA</p>