-
Notifications
You must be signed in to change notification settings - Fork 152
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
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", … }));
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);
Thanks for the PR! But please separate the commit of getTestUsers from the PR. |
test for age_range support
removed the commit of getTestUsers from this PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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", … }));