Getting error while trying to implement facebook social login in angular9 while using it in http

537 Views Asked by At

I'm trying to implement Facebook social login in angular9 using angularx-social-login. But I'm getting this error. thanks in advance.

enter image description here

1

There are 1 best solutions below

0
Sándor Jankovics On

The problem is that your pages is not served under https. Even it is localhost in order to use fb login you have to use https. Also it is the same for every social login(google,fb,ms,etc). This restiction is due to security reasons.

In order to server you dev environment in https you have to add you cert to the server.

I found this tutorial in order to genereate for localhost https://medium.com/@richardr39/using-angular-cli-to-serve-over-https-locally-70dab07417c8