public async static Task <FacebookUser> GetUserAsync(this FacebookClient client) { var userResult = await client.GetCurrentUserAsync() as JsonObject; return(FacebookUserMappers.MapToUser(userResult)); }
public static FacebookUser GetUser(this FacebookClient client) { var userResult = client.GetCurrentUserAsync().Result as JsonObject; return(FacebookUserMappers.MapToUser(userResult)); }