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

Login with facebook does not set user's name and picture

Scheduled Pinned Locked Moved Unsolved
Q&A
2
2
2.6k
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.
  • Z
    zidstol.komp
    last edited by 15 May 2022, 18:35

    I am creating a PoC to see if FusionAuth is a good solution for a app, I've got facebook identity provider setup and login generaly works.

    For permissions field, I've set up public_profile,email and for Fields field I have first_name,last_name,name,picture,email.

    FusionAuth does not do the initial redirect, It is done by third app and code is sent to /api/identity-provider/login, which correctly fetches email and creates user, but user is missing profile picture and name inside FusiionAuth dashboard.

    I see the docs for facebook login specifying fetching profile picture, so I assume it should have linked it and should have mapped facebook name to FusionAuth name?

    D 1 Reply Last reply 26 May 2022, 14:19 Reply Quote 0
    • D
      dan @zidstol.komp
      last edited by 26 May 2022, 14:19

      @zidstol-komp

      So it sounds like you are not using FusionAuth's hosted login pages, but are building your own integration with Facebook. And then you are calling https://fusionauth.io/docs/v1/tech/apis/identity-providers/facebook#complete-the-facebook-login

      Is that correct?

      If so, I think you'd need to make the additional calls to Facebook to get the name and picture and then to update the FusionAuth user profile.

      When you use the hosted login pages, we handle that for you, but when you build your own integration, all we do is log the user in (and possible create them and register them for your application, if configured to do so).

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

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