title: Facebook Graph API: Getting the total number of posts
body: <p>I've been using the Facebook Graph API to display user posts.  When I get the initial "page" of posts, the resulting data object has a <code>paging</code> property object with a <code>previous</code> and <code>next</code> URL property.  I was hoping to generate navigation links based on this available paging information.  However, sometimes these URLs point to an empty set of data, so I obviously don't want to navigate the user to an empty page.</p>
  
  <p>Is there a way to find the total count of objects in a collection so that better navigation can be derived?  Is there any way to get smarter paging data?</p>
  
  <p><strong>Update:</strong>
  Sorry if my post isn't clear.  To illustrate, look at the data at <a href="https://graph.facebook.com/7901103/posts" rel="nofollow">https://graph.facebook.com/7901103/posts</a> and its paging property URLs.  Then follow those URLs to see the issue: empty pages of data.</p>