Search code examples
facebooktrigger.ioforge

Forge (Trigger.io) facebook module getLoginStatus


At Forge.Facebook module doc I can only see authorize, logout, api and ui function avaible from FB SDK. But it's et posible to get login status, like SDK's getLoginStatus, some how?


Solution

  • Just call forge.facebook.authorize and if the user has already logged in it won't open up the modal dialog again.

    Since v1.4.6 we also return the access_token.

    Is there anything else that getLoginStatus gives you that you'd need through us?

    Update: you can now also check whether a user is logged in without showing any prompt using our forge.facebook.hasAuthorized method.