• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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
480
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 9 Sept 2020, 08:29

    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
    • D
      dan
      last edited by 9 Sept 2020, 15:00

      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 10 Sept 2020, 01:34

        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
        3 out of 3
        • First post
          3/3
          Last post