Examples of fetchConnectionPage()


Examples of com.restfb.DefaultFacebookClient.fetchConnectionPage()

  public void checkConnectionPage() {
    DefaultFacebookClient client = new DefaultFacebookClient(getAccessToken(), Version.VERSION_2_1);
    Connection<Post> connection = client.fetchConnection("/cocacola/feed", Post.class);
    assertTrue(connection.getData().size() > 0);
    if (connection.hasNext()) {
      Connection<Post> connection2 = client.fetchConnectionPage(connection.getNextPageUrl(), Post.class);
      assertTrue(connection2.getData().size() > 0);
    } else {
      fail("Page has no second connection");
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.