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

age_range field management #74

Closed
wants to merge 4 commits into from

Conversation

paolobiavati
Copy link
Contributor

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", … }));

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", … }));
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.11%) when pulling 2ad97a9 on paolobiavati:master into 380da68 on roundrop:master.

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);
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.21%) when pulling 56bc630 on paolobiavati:master into 380da68 on roundrop:master.

@roundrop
Copy link
Owner

Thanks for the PR!

But please separate the commit of getTestUsers from the PR.

This rolls back to commit 2ad97a9.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.11%) when pulling 81c9e21 on paolobiavati:master into 380da68 on roundrop:master.

test for age_range support
@paolobiavati
Copy link
Contributor Author

removed the commit of getTestUsers from this PR.
added test for age_range.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) when pulling 0ccdfe0 on paolobiavati:master into 380da68 on roundrop:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants