title: Get Posts (Wall Facebook) of me and my friends
body: <p>I use
  <a href="https://developers.facebook.com/tools/access_token/" rel="nofollow">https://developers.facebook.com/tools/access_token/</a></p>
  
  <p>I create an App. I want get Posts of the wall of me and my friends.</p>
  
  <p>I try <code>me/feed</code> and <code>me/posts</code> but I get nothing.</p>
  
  <p>I have this unit test.</p>
  
  <p>Any suggestions?</p>
  
  <pre><code>    [TestMethod]
      public void Basic_using_SDK()
      {
          // http://blog.prabir.me/posts/facebook-csharp-sdk-making-requests
          var fb = new Facebook.FacebookClient();
  
          var result = (IDictionary&lt;string, object&gt;)fb.Get("4");
  
          var id = (string)result["id"];
          var name = (string)result["name"];
          var firstName = (string)result["first_name"];
          var lastName = (string)result["last_name"];
          var link = (string)result["link"];
          var username = (string)result["username"];
          var gender = (string)result["gender"];
          var male = (string)result["locale"];
  
  
          var parameters = new Dictionary&lt;string, object&gt;();
          parameters["fields"] = "id,name";
  
          result = (IDictionary&lt;string, object&gt;)fb.Get("4", parameters);
          id = (string)result["id"];
          name = (string)result["name"];
  
  
          dynamic result2 = fb.Get("4");
  
          id = result2.id;
          name = result2.name;
          firstName = result2.first_name;
          lastName = result2.last_name;
          link = result2.link;
          username = result2.username;
          gender = result2.gender;
          male = result2.locale;
  
  
          dynamic parameters2 = new ExpandoObject();
          parameters2.fields = "id,name";
  
          dynamic result3 = fb.Get("4", parameters);
          id = result3.id;
          name = result3.name;
  
          dynamic me = fb.Get("zuck");
          firstName = me.first_name;
          lastName = me.last_name;
  
  
          var client = new FacebookClient(AccessToken);
          dynamic me2 = client.Get("me");
          string aboutMe = me2.about;
  
          dynamic result4 = client.Get("/me/feed");
  
          foreach (dynamic post in result4.data)
          {
              var fromName = post.from.name;
              Console.WriteLine(fromName);
          }
  
          dynamic result5 = client.Get("/me/posts");
          for (int i = 0; i &lt; result5.Count; i++)
          {
          }
  
  
          // https://www.facebook.com/profile.php?id=xxxxxxx
          // https://graph.facebook.com/xxxxxxx
          var uidKiquenet = "xxxxx";
          var query = string.Format(@"SELECT status_id,message,time,source,uid,place_id
                              FROM status WHERE uid IN (SELECT uid FROM status WHERE uid = '" + uidKiquenet + "') ORDER BY time DESC");
  
          dynamic parameters6 = new ExpandoObject();
          parameters6.q = query;
  
          dynamic results6 = fb.Get("/xxxxx?fields=id,name,age_range,about,email,first_name,gender");
  
  
          string myMessage = "Hello from Test";
  
          fb.PostTaskAsync("me/feed", new { message = myMessage }).ContinueWith(t =&gt;
          {
              if (!t.IsFaulted)
              {
                  string message = "Great, your message has been posted to you wall!";
                  Console.WriteLine(message);
              }
          });
  
          fb.GetTaskAsync("me").ContinueWith(t =&gt;
          {
              if (!t.IsFaulted)
              {
                  var result11 = (IDictionary&lt;string, object&gt;)t.Result;
                  string myDetails = string.Format("Your name is: {0} {1} and your Facebook profile Url is: {3}",
                                                    (string)result11["first_name"], (string)result11["last_name"],
                                                    (string)result11["link"]);
                  Console.WriteLine(myDetails);
              }
          });
  
          // This uses Facebook Query Language
          // See https://developers.facebook.com/docs/technical-guides/fql/ for more information.
          query = string.Format("SELECT uid,name,pic_square FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1={0}) ORDER BY name ASC", "me()");
  
          fb.GetTaskAsync("fql", new { q = query }).ContinueWith(t =&gt;
          {
              if (!t.IsFaulted)
              {
                  var result1 = (IDictionary&lt;string, object&gt;)t.Result;
                  var data = (IList&lt;object&gt;)result1["data"];
                  var count = data.Count;
                  var message = string.Format("You have {0} friends", count);
                  Console.WriteLine(message);
  
                  foreach (IDictionary&lt;string, object&gt; friend in data)
                      Console.WriteLine((string)friend["name"]);
              }
          });
  
      }
  </code></pre>