I am using Azure Mobile Service to add authentication to my Windows Store app. Following this article from Mobile Services documentation I am able to get the UserId as well
Facebook, Google doesn't return you user profile name, e-mail when authorizing. They are giving you access token
that can be used for future requests.
You need to request for example to Facebook Graph API for name, email
with your MobileServiceAuthenticationToken
.
You can use this library for accessing to Facebook API: https://facebookgraphapi.codeplex.com/
// MobileServiceAuthenticationToken <- your token
var facebook = new FacebookGraphAPI(MobileServiceAuthenticationToken);
// Get user profile data
var user = facebook.GetObject("me", null);
Console.WriteLine(user["name"]);