'How to logout from facebook using expo-facebook

I have been trying to logout/end the session of the current logged in user so that any other user can login. https://docs.expo.dev/versions/latest/sdk/facebook/#logoutasync expo-facebook provides logOutAsync() method but its not working. How can I logout programmatically? is there any graphQl API, unable to find any.



Solution 1:[1]

You should import expo facebook

import * as Facebook from 'expo-facebook';

and call logOutAsync

Facebook.logOutAsync();

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Fatih