title: How does paging in facebook javascript API work?
body: <p>I'm trying to recover the last week posts in my facebook news feed with the javascript sdk.
  I'm able to get the first page but then, I don't know how to continue iterating through the other pages. I've tried it with the following code:</p>
  
  <pre><code> $('#loadPosts').bind('click', function() {     
              FB.api('/me/home',{since:'last week'}, getPosts);   
            });
  
   getPosts = function(response){
          for (element in response.data){
              post = response.data[element]
              console.log(post);          
            }
  
            previousPage = response.paging.previous;        
            console.log(previousPage);
  
            // can i call FB.api(previousPage, getPosts); ??      
  
        }
  </code></pre>
  
  <p>But I'm getting a URL as previous page and I don't know how to make a javascript FB.api call from that URL. Any ideas?</p>