Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I can answer your question using FQL, which is on my opinion much simplier. I used FacebookWebclient, but FacebookClient should work the same way.</p> <p> FacebookWebClient fb = new FacebookWebClient(); </p> <pre><code>string query0 = "SELECT uid2 FROM friend WHERE uid1 = me()"; //here you get the friends list string query1 = "SELECT uid, message, status_id FROM status WHERE uid IN (SELECT uid2 FROM #query0)"; //here you get the last statuse of each friend (max 50, or max from the last 30 days) string query2 = "SELECT uid, name FROM user WHERE uid IN (SELECT uid FROM #query1)"; //here you get the user data (in this case the name only) dynamic result = fb.Query(query0, query1, query2); //all results dynamic status = result[1][1]; //results of query1 dynamic friend = result[2][1]; //results of query2 for (int i = 0; i &lt; result[1][1].Count; i++) { litFeedback.Text += "&lt;a href=\"http://www.facebook.com/profile.php?id=" + status[i].uid + "\" target=\"_blank\"&gt;" + friend[i].name + "&lt;/a&gt; : " + status[i].message + "&lt;br/&gt;" + Environment.NewLine; } //if not using .net 4.0: //var result = (IList&lt;object&gt;)fb.Query(query1, query2); //var result0 = ((IDictionary&lt;string, object&gt;)result[0])["fql_result_set"]; //var result1 = ((IDictionary&lt;string, object&gt;)result[1])["fql_result_set"]; </code></pre> <p>Note:</p> <p><a href="http://developers.facebook.com/docs/reference/fql/status/" rel="nofollow">http://developers.facebook.com/docs/reference/fql/status/</a> <em>"The status table is limited to the last 30 days or 50 posts, whichever is greater."</em></p> <p>And of course you need the <strong>permissions</strong> for: <strong>friends_status</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload