예제 #1
0
        public async static Task <FacebookUser> GetUserAsync(this FacebookClient client)
        {
            var userResult = await client.GetCurrentUserAsync() as JsonObject;

            return(FacebookUserMappers.MapToUser(userResult));
        }
예제 #2
0
        public static FacebookUser GetUser(this FacebookClient client)
        {
            var userResult = client.GetCurrentUserAsync().Result as JsonObject;

            return(FacebookUserMappers.MapToUser(userResult));
        }