question

Alen Jose avatar image
Alen Jose asked

Keep facebook logged in.

If I log in to facebook in a Unity scene is it possible to keep it logged in even when the scene changes?

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

·
Citrus Yan avatar image
Citrus Yan answered

Facebook Unity SDK automatically keeps the user’s logged-in status , therefore, changing scenes won’t affect that, you should be able to make successive calls even if scenes are changed. And, although the user access token has a lifespan of an hour or two, it’s also important to the check & refresh the user access token since Facebook's doc state that they may change that at any time. For more details, please see:

Facebook doc on Access Tokens

Facebook SDK for Unity Reference

Previous PlayFab thread: How to login once and then stay logged in to Facebook?

BTW, it's recommended to contact Facebook support for Facebook-specific questions where you can receive more professional answers.

10 |1200

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

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.