How to check/get currently logged in facebook user?
Hi,
After long googling, I found that spring social only supports oauth authentication/authorization flow.
However, it doesn't support features like "checking whether a facebook user is currently logged-in or not".
Google supports similar feature using google user service.
If we sign in using google users service, then we can get currently logged-in google user information.
If google user sign-out, then google's user service returns null.
My requirement is to make my site accessible only if there is an active login in facebook (browser).
If user signs out of facebook, then my site should be show "facebook" sign in button.
I think fb supports client-side authentication to do the above requirement. But, I need the same logic to happen in backend server.