question

sebastienl avatar image
sebastienl asked

Refreshing Facebook's token if already logged in

Hi,

From what I understood, to be able to see a player's Facebook friends, I need to make sure that the player's Facebook access token presently stored in Playfab is not expired.

Now, my question is how can I supply the fresh token, if the user has already logged in through a different method (by deviceID for example)? Or do I need instead to always use LoginWithFacebook as my primary mean for logging in?

Thank you

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Yes, you would use the LoginWithFacebook call to update the Facebook token we have for your player.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

charlie avatar image charlie commented ·

If a player is already logged in to Playfab, say with LoginWithDeviceId, and now they want to use Facebook also so they use a connect option within game, can I call LoginWithFacebook also? Are there issues with logging in a second time during a session?

0 Likes 0 ·
brendan avatar image brendan charlie commented ·

No, there's nothing preventing you from re-logging into the account.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.