internal static void clearFacebookSession(Action <Boolean, Exception> callback) { if (facebook != null && facebook.isSessionValid()) { facebook.setAccessToken(null); } FacebookSession.clear(); clearFacebookCookies(callback); }
public static bool restore(Facebook session) { String accessToken = ""; if (settings.Contains(ACCESS_TOKEN)) { accessToken = settings[ACCESS_TOKEN].ToString(); } session.setAccessToken(accessToken); return(session.isSessionValid()); }