I have written a JAVA servlet that calls a Facebook URL and gets back a JSON String. Now, I authenticate the user using OAuth 2.0 before making calls to this URL.
All this is happening at the background using ExecutorService in JAVA. Once I call ExecutorService for all this processing, I immediately redirect the page to another URL by using the following command:
request.getRequestDispatcher("Thanks.jsp").forward(request, response);
Now, how do I log-off from Facebook for the user in the background processing that is happening? The browser page has already moved to "Thanks.jsp" by delegating the processing to ExecutorService in the background.