abacritt / angularx-social-login

Social login and authentication module for Angular 17
634 stars 387 forks source link

** Facebook login stopped WORKING ** #537

Closed Roman-Simik closed 1 year ago

Roman-Simik commented 2 years ago

Today around 3 AM CES, it stopped working.

You can see it on your own DEMO.

After clicking on FB icon -> image

mslivinschi commented 2 years ago

Hi, like temporary fix i can sugest you add in index.html <script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script>

it will be loaded 2 times one in index.html , and two with loadScript from BaseLoginProvider but it will fix your problem, if is critical for your site

oliverfrost commented 2 years ago

Same for me. Happens on both packages: "angularx-social-login": "4.0.1" "@abacritt/angularx-social-login": "1.1.0"

As you can see I use older versions so the problem doesn't seem to be in the 'angularx-social-login' library. But something definitely has changed.

Found this while looking for a solution: https://gist.github.com/tpai/602898fe0d3d630f0099d58856cef352

And I also see two requests in Network tab: _GET https://connect.facebook.net/en_US/sdk.js GET https://connect.facebook.net/en_US/sdk.js?hash=8e02905d5edd97550c2e5084f9d5f_. (initiator sdk.js, line 22)

Is it possible that second request causes the issue?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.