FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Complete Facebook Login api cannot work with token returned from facebook login api

    Scheduled Pinned Locked Moved
    Q&A
    2
    3
    478
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hey
      last edited by

      Hi Sir

      I need to customize my own login window in my website. and I want to add the facebook login to it also integrated with FusionAuth.
      Here is the case, in my website, I use facebook javascript SDK to login and got the response including facebook name, email and access tocken. then I try to complete the facebook login in with fusion API here: https://fusionauth.io/docs/v1/tech/apis/identity-providers/facebook#complete-the-facebook-login

      but I always got the 401 as the status in response as folllowing:
      Screenshot from 2020-09-09 16-19-15.png

      this is facebook login response I got succesfully:
      Screenshot from 2020-09-09 16-18-48.png

      what's more, I finished the google login integration with the same way, and it works well.

      Could you let me know if there is something different on facebook login integration?

      Co

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        Hiya,

        Sorry to hear you're having trouble getting this set up. A few questions:

        What version of FusionAuth are you running?

        Have you created a Facebook identity provider/added a Facebook application/configured Facebook login as documented here: https://fusionauth.io/docs/v1/tech/identity-providers/facebook?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • H
          hey
          last edited by

          Hi Dan

          Thanks a lot. It's fixed. The reason is the wrong configuration in facebook account.

          Regards
          Co

          1 Reply Last reply Reply Quote 1
          • First post
            Last post