Java Code Examples for com.facebook.Request#getParameters()
The following examples show how to use
com.facebook.Request#getParameters() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FriendPickerFragment.java From platform-friends-android with BSD 2-Clause "Simplified" License | 6 votes |
private Request createRequest(String userID, Set<String> extraFields, Session session) { Request request = Request.newGraphPathRequest(session, userID + "/friends", null); Set<String> fields = new HashSet<String>(extraFields); String[] requiredFields = new String[]{ ID, NAME }; fields.addAll(Arrays.asList(requiredFields)); String pictureField = adapter.getPictureFieldSpecifier(); if (pictureField != null) { fields.add(pictureField); } Bundle parameters = request.getParameters(); parameters.putString("fields", TextUtils.join(",", fields)); request.setParameters(parameters); return request; }
Example 2
Source File: FriendPickerFragment.java From Klyph with MIT License | 6 votes |
private Request createRequest(String userID, Set<String> extraFields, Session session) { Request request = Request.newGraphPathRequest(session, userID + "/friends", null); Set<String> fields = new HashSet<String>(extraFields); String[] requiredFields = new String[]{ ID, NAME }; fields.addAll(Arrays.asList(requiredFields)); String pictureField = adapter.getPictureFieldSpecifier(); if (pictureField != null) { fields.add(pictureField); } Bundle parameters = request.getParameters(); parameters.putString("fields", TextUtils.join(",", fields)); request.setParameters(parameters); return request; }
Example 3
Source File: FriendPickerFragment.java From barterli_android with Apache License 2.0 | 6 votes |
private Request createRequest(String userID, Set<String> extraFields, Session session) { Request request = Request.newGraphPathRequest(session, userID + "/friends", null); Set<String> fields = new HashSet<String>(extraFields); String[] requiredFields = new String[]{ ID, NAME }; fields.addAll(Arrays.asList(requiredFields)); String pictureField = adapter.getPictureFieldSpecifier(); if (pictureField != null) { fields.add(pictureField); } Bundle parameters = request.getParameters(); parameters.putString("fields", TextUtils.join(",", fields)); request.setParameters(parameters); return request; }
Example 4
Source File: FriendPickerFragment.java From android-skeleton-project with MIT License | 6 votes |
private Request createRequest(String userID, Set<String> extraFields, Session session) { Request request = Request.newGraphPathRequest(session, userID + "/friends", null); Set<String> fields = new HashSet<String>(extraFields); String[] requiredFields = new String[]{ ID, NAME }; fields.addAll(Arrays.asList(requiredFields)); String pictureField = adapter.getPictureFieldSpecifier(); if (pictureField != null) { fields.add(pictureField); } Bundle parameters = request.getParameters(); parameters.putString("fields", TextUtils.join(",", fields)); request.setParameters(parameters); return request; }
Example 5
Source File: FriendPickerFragment.java From FacebookImageShareIntent with MIT License | 6 votes |
private Request createRequest(String userID, Set<String> extraFields, Session session) { Request request = Request.newGraphPathRequest(session, userID + "/friends", null); Set<String> fields = new HashSet<String>(extraFields); String[] requiredFields = new String[]{ ID, NAME }; fields.addAll(Arrays.asList(requiredFields)); String pictureField = adapter.getPictureFieldSpecifier(); if (pictureField != null) { fields.add(pictureField); } Bundle parameters = request.getParameters(); parameters.putString("fields", TextUtils.join(",", fields)); request.setParameters(parameters); return request; }
Example 6
Source File: FriendPickerFragment.java From Abelana-Android with Apache License 2.0 | 6 votes |
private Request createRequest(String userID, Set<String> extraFields, Session session) { Request request = Request.newGraphPathRequest(session, userID + friendPickerType.getRequestPath(), null); Set<String> fields = new HashSet<String>(extraFields); String[] requiredFields = new String[]{ ID, NAME }; fields.addAll(Arrays.asList(requiredFields)); String pictureField = adapter.getPictureFieldSpecifier(); if (pictureField != null) { fields.add(pictureField); } Bundle parameters = request.getParameters(); parameters.putString("fields", TextUtils.join(",", fields)); request.setParameters(parameters); return request; }
Example 7
Source File: FriendPickerFragment.java From KlyphMessenger with MIT License | 6 votes |
private Request createRequest(String userID, Set<String> extraFields, Session session) { Request request = Request.newGraphPathRequest(session, userID + "/friends", null); Set<String> fields = new HashSet<String>(extraFields); String[] requiredFields = new String[]{ ID, NAME }; fields.addAll(Arrays.asList(requiredFields)); String pictureField = adapter.getPictureFieldSpecifier(); if (pictureField != null) { fields.add(pictureField); } Bundle parameters = request.getParameters(); parameters.putString("fields", TextUtils.join(",", fields)); request.setParameters(parameters); return request; }
Example 8
Source File: FriendPickerFragment.java From facebook-api-android-maven with Apache License 2.0 | 6 votes |
private Request createRequest(String userID, Set<String> extraFields, Session session) { Request request = Request.newGraphPathRequest(session, userID + friendPickerType.getRequestPath(), null); Set<String> fields = new HashSet<String>(extraFields); String[] requiredFields = new String[]{ ID, NAME }; fields.addAll(Arrays.asList(requiredFields)); String pictureField = adapter.getPictureFieldSpecifier(); if (pictureField != null) { fields.add(pictureField); } Bundle parameters = request.getParameters(); parameters.putString("fields", TextUtils.join(",", fields)); request.setParameters(parameters); return request; }
Example 9
Source File: KlyphPlacePickerFragment.java From Klyph with MIT License | 5 votes |
private Request createRequest(Location location, int radiusInMeters, int resultsLimit, String searchText, Set<String> extraFields, Session session) { Request request = Request.newPlacesSearchRequest(session, location, radiusInMeters, resultsLimit, searchText, null); Set<String> fields = new HashSet<String>(extraFields); String[] requiredFields = new String[]{ ID, NAME, LOCATION, CATEGORY, WERE_HERE_COUNT }; fields.addAll(Arrays.asList(requiredFields)); String pictureField = adapter.getPictureFieldSpecifier(); if (pictureField != null) { fields.add(pictureField); } Bundle parameters = request.getParameters(); parameters.putString("fields", TextUtils.join(",", fields)); request.setParameters(parameters); return request; }