• Resolved kilianso

    (@kilianso)


    Hey there. This is no coding help request. It’s more of a bug report that your implementation seems broken.

    Seems like Facebook changed their profile picture URLs. Something like this is no longer working:

    https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=10156598689293596&height=200&width=200&ext=1712047568&hash=Afp6lacN0RCcHGBEkAYb1Dlln60FlEivGp7lVVaiEDumeA

    For context: I’m using your nsl_registration_store_extra_input to let new users add additional info before registration is completed. During this additional registration step, i already grab the name and profile picture from nsl_registration_user_data. So getAuthUserData(‘picture’) is giving me the URL and also the hash is updating, but the image can not load anymore. And yes, i am aware that this URL expires quickly and i do not store it. It’s just to show the profile picture during the additional registration process. After that, your plugin is sideloading the image to the media library and that is still working! So after the registration is completed, the Facebook profile picture is correctly visible and assigned as the users avatar.

    This is only an issue with Facebook. Google and X/Twitter are just working fine. Not tried with other providers.

    You can see the issue if you try to sign up on swissbeatbox.com > profile icon on the top right > Login with Facebook. On the “Complete registration” step, you will see that there is a missing image on top of the page (where the SBX logo sits). Open the browser console and to see the 404 of the profile picture URL.

    Any fix or workaround would be highly appreciated. ??

    • This topic was modified 8 months, 3 weeks ago by kilianso.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @kilianso

    I couldn’t check this problem on your site, as your Facebook App returned this error:

    Feature Unavailable
    Facebook Login is currently unavailable for this app, since we are updating additional details for this app. Please try again later.

    meaning that your app is not configured properly:

    But regardless, I am sorry, but this is not a bug in our code. It depends entirely on Facebook if they will load the image or not, and indeed the link will expire as it is stated in the official documentations:

    that is one of the many other reasons we never try to serve these image from the servers of the given provider, but we store them locally.

    Anyways I have just checked this on my local test site and in my case the external link of the image worked fine even after a couple of minutes. And also if it didn’t work, then we shouldn’t be able to download and store the image either, as the image gets downloaded after the registration with social login. So if the image throws and error when you try to use it in our register flow ( that happens just before our registration ), then it should throw an error at the point when we try to download the image as well, as we use the value returned by the getAuthUserData() method, too. But you told it gets stored fine there.

    So maybe it has something to do with the way you are trying to display the image.

    But regardless, please note that, custom coding is out of the scope of our support and there is nothing on our end that could fix this problem anyways, as we don’t have any control over how long the image is accessible.

    Best regards,

    Laszlo.

    Thread Starter kilianso

    (@kilianso)

    Hey @laszloszalvak

    Thanks for the quick response. Oh good catch! Since i am the admin of the facebook app, facebook login worked for me all the time. Should have tested with other users before launching. ??

    Anyway, i’m going to submit the business for review and check wether this resolves the issue.

    But it’s still strange that my profile picture can be sideloaded after completing the registration even though the image URL is invalid during the registration flow. Something is sketchy. I’ll figure it out. Thanks for the help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Facebook Avatar URL is no longer working’ is closed to new replies.