title: how to get friend's likes from facebook
body: <p>I am retrieving the complete list of a friend's likes(the list of pages that the user likes) using the code bellow:</p>
  
  <pre class="lang-cs prettyprint-override"><code>Uri ex_a = new System.Uri("https://graph.facebook.com/" + friend_id + "/likes?    access_token=" + token);
  WebClient WC_a = new WebClient();
  WC_a.DownloadStringCompleted += new System.Net.DownloadStringCompletedEventHandler(list_likes);
  WC_a.DownloadStringAsync(ex_a);
  
  private void list_likes(object ob, DownloadStringCompletedEventArgs e)
  {
  JsonObject jo = new JsonObject(e.Result);
  JsonArray dataArray = (JsonArray)jo["data"];
  
  if (dataArray.ToString().Length &gt; 2)
   {
    foreach (JsonObject account in dataArray)
     {
      list_of_likes.Add(new class_of_likes("http://graph.facebook.com/" + (string)account["id"] + "/picture?type=small", (string)account["name"]));
     }
   }
  
  }
  </code></pre>
  
  <p>However, in October 2013, this approach will only retrieve 25 results/request.
  I need to know how to create a loop to get the remaining results because facebook uses pagination like:
  "paging": {
        "next": "<a href="https://graph.facebook.com/user_id/likes?limit=25&amp;offset=25&amp;__after_id=last_page_id" rel="nofollow">https://graph.facebook.com/user_id/likes?limit=25&amp;offset=25&amp;__after_id=last_page_id</a>"</p>
  
  <p>Thank you.</p>