コード例 #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));
        }