Can anyone tell me what I can extract from the Facebook JS SDK that I can use to send to a web service that I'm using to safely identify a user from?
For example, once I have established the user has auth'd my application, I want to register this user in my server database. Then I want to use their ID to request data about this user, so a GET to my server such as "user//thedata".
Here is what I'm trying to achieve. Once my user is logged in using the Facebook API, I want to able to make web service calls to my hosted web service in the context of that user only. How do I avoid traffic sniffing or simply asking the web service for a different users ID for their data?
Update:
Do I simply use the auth_token that Facebook gives me after logging in, send this to my server, and then have the server query the Facebook Graph API with the token to get the user ID?
Thanks.