Firebase facebook login photo url signature expired

前端 未结 4 2323
星月不相逢
星月不相逢 2021-01-20 01:30

I\'m using Firebase (angularfire) and Facebook login in my APP to authenticate my users. However today I realized that the profile image URL had been expired, but the Fireba

4条回答
  •  無奈伤痛
    2021-01-20 02:26

    Firebase only updates this data after you sign in using a provider:

    1. User signs in with Facebook. Facebook provider data populated.
    2. User updates their Facebook photoURL.
    3. User signs in again with Facebook, the photoURL for the facebook provider is updated.

    Sign In again is key here. A user reload will not refresh the user properties.

    The top level displayName and photoURL won't be updated though. You will need to do that manually with the relevant API.

    If this is not good enough for your needs, you should switch to using the Facebook API.

提交回复
热议问题