title: Accessing Result property of a Task
body: <p>I am trying to retrieve the ID of an album using the C# Facebook SDK. However I am getting the below error:</p>
  
  <blockquote>
    <p>System.Threading.Tasks.Task' does not contain a definition for 'Result' and no extension method 'Result' accepting a first argument of type 'System.Threading.Tasks.Task' could be found</p>
  </blockquote>
  
  <p>Please see the below code, the error occurs on the foreach line</p>
  
  <pre><code>try
  {
      string wallAlbumID = string.Empty;
      FacebookClient client = new FacebookClient(accessToken);
      client.GetTaskAsync(pageID + "/albums")
          .ContinueWith(task =&gt;
              {
                  if (!task.IsFaulted)
                  {
                      foreach (dynamic album in task.Result.data)
                      {
                          if (album["type"] == "wall")
                          {
                              wallAlbumID = album["id"].ToString();
                          }
                      }
                  }
                  else
                  {
                      throw new DataRetrievalException("Failed to retrieve wall album ID.", task.Exception.InnerException);
                  }
              });
      return wallAlbumID;
  }
  </code></pre>
  
  <p>For the record, the <code>FacebookClient.GetTaskAsync</code> method returns <code>Task&lt;object&gt;</code></p>