Logout using Expo Facebook class

Hi, I’ve just implemented logging in with Facebook using the Expo Facebook class method logInWithReadPermissionsAsync.

It’s working great, but I don’t see any way to implement the ability for the user to logout.

Does anyone know how to do this?


1 Like

You could implement logging out by clearing the FB access token you got after logging in. Just remove it from your storage mechanism.

The logout method in the native FB SDK just clears its saved token. Is this behavior something you need?


Hi, thanks for the response. Sorry, I just figured there’d be a Facebook specific way to log the user out.

Managing it via a custom button which clears the id stored in my app is fine.