Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getTestUsers implementation to manage paging #76

Merged
merged 6 commits into from
Jan 31, 2015

Commits on Jan 9, 2015

  1. age_range field management

    age_range comes as part of the public_profile permission, it indicates
    unspecific age range that this person's age fits into.
    values: min-max: (13-17 / 18-20 / 21-null)
    
    usage:
    Facebook facebook = new FacebookFactory().getInstance();
    facebook.setOAuthAccessToken(new AccessToken(facebookToken, null));
    User me = facebook.getMe(new Reading().fields(new String[]
    {“age_range”, "birthday", "email", … }));
    paolobiavati committed Jan 9, 2015
    Configuration menu
    Copy the full SHA
    2ad97a9 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2015

  1. getTestUsers implementation to manage paging

    new version of  method  getTestUsers
    
    /**
    * Returns test users associated with a particular app.
    * This method manage paging, call facebook.fetchNext to get next page
    * @param appId the ID of the app
    * @param limit number of elements per page (can be null to use default
    page size)
    * @return Test Users first page
    * @throws FacebookException when Facebook service or network is
    unavailable
    * @see <a href="https://developers.facebook.com/docs/test_users/">Test
    Users - Facebook Developers</a>
    */
    ResponseList<TestUser> getTestUsers(String appId, Integer limit) throws
    FacebookException;
    
    usage:
    ResponseList<TestUser> testUsersResponseList =
    facebook.getTestUsers(appId, limit);
    Paging<TestUser> paging = testUsersResponseList.getPaging();
    testUsersResponseList = facebook.fetchNext(paging);
    paolobiavati committed Jan 11, 2015
    Configuration menu
    Copy the full SHA
    56bc630 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2015

  1. Revert 2ad97a9..56bc630

    This rolls back to commit 2ad97a9.
    paolobiavati committed Jan 12, 2015
    Configuration menu
    Copy the full SHA
    81c9e21 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2015

  1. Test for age_range

    test for age_range support
    paolobiavati committed Jan 13, 2015
    Configuration menu
    Copy the full SHA
    0ccdfe0 View commit details
    Browse the repository at this point in the history
  2. getTestUsers implementation to manage paging

    new version of  method  getTestUsers
    (include test: TestUserMethods)
    
    /**
    * Returns test users associated with a particular app.
    * This method manage paging, call facebook.fetchNext to get next page
    * @param appId the ID of the app
    * @param limit number of elements per page (can be null to use default
    page size)
    * @return Test Users first page
    * @throws FacebookException when Facebook service or network is
    unavailable
    * @see <a href="https://developers.facebook.com/docs/test_users/">Test
    Users - Facebook Developers</a>
    */
    ResponseList<TestUser> getTestUsers(String appId, Integer limit) throws
    FacebookException;
    
    usage:
    ResponseList<TestUser> testUsersResponseList =
    facebook.getTestUsers(appId, limit);
    Paging<TestUser> paging = testUsersResponseList.getPaging();
    testUsersResponseList = facebook.fetchNext(paging);
    paolobiavati committed Jan 13, 2015
    Configuration menu
    Copy the full SHA
    cbf648c View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2015

  1. Configuration menu
    Copy the full SHA
    331fb41 View commit details
    Browse the repository at this point in the history