I'm building an application with the following blocks:
Android - Client Side, Java Servlets - Sever Side, Facebook app - used in order to authenicate users and work with their data.
My Problem is the following: I would like to authenticate my users via facebook (such as a request sent from the android client using facebook-android-sdk to facebook) but then I would like to send requests to my server (which is implemented by servlets) and to validate somehow that the user sending the request is authenticated to facebook and my application.
So these are the steps:
user X is authenicated to facebook and my facebook app using facebook-android-sdk. X is sending a request to my server
As for the server, I would only like to know it's a proper user which is working with me, I don't need the server to perform any Graph API requests.
How can I know that X is valid in my server? The authentication was performed on client side in that case.