📄 ifacebookrestclient.java
字号:
*/ public boolean feed_publishStoryToUser(CharSequence title, CharSequence body, Integer priority) throws FacebookException, IOException; /** * Publish a story to the logged-in user's newsfeed. * @param title the title of the feed story * @param body the body of the feed story * @param images (optional) up to four pairs of image URLs and (possibly null) link URLs * @return whether the story was successfully published; false in case of permission error * @see <a href="http://wiki.developers.facebook.com/index.php/Feed.publishStoryToUser"> * Developers Wiki: Feed.publishStoryToUser</a> */ public boolean feed_publishStoryToUser(CharSequence title, CharSequence body, Collection<IFeedImage> images) throws FacebookException, IOException; /** * Returns all visible events according to the filters specified. This may be used to find all events of a user, or to query specific eids. * @param eventIds filter by these event ID's (optional) * @param userId filter by this user only (optional) * @param startTime UTC lower bound (optional) * @param endTime UTC upper bound (optional) * @return T of events */ public T events_get(Integer userId, Collection<Long> eventIds, Long startTime, Long endTime) throws FacebookException, IOException; /** * Retrieves the membership list of an event * @param eventId event id * @return T consisting of four membership lists corresponding to RSVP status, with keys * 'attending', 'unsure', 'declined', and 'not_replied' */ public T events_getMembers(Number eventId) throws FacebookException, IOException; /** * Retrieves whether two users are friends. * @param userId1 * @param userId2 * @return T * @see <a href="http://wiki.developers.facebook.com/index.php/Friends.areFriends"> * Developers Wiki: Friends.areFriends</a> */ public T friends_areFriends(int userId1, int userId2) throws FacebookException, IOException; /** * Retrieves whether pairs of users are friends. * Returns whether the first user in <code>userIds1</code> is friends with the first user in * <code>userIds2</code>, the second user in <code>userIds1</code> is friends with the second user in * <code>userIds2</code>, etc. * @param userIds1 * @param userIds2 * @return T * @see <a href="http://wiki.developers.facebook.com/index.php/Friends.areFriends"> * Developers Wiki: Friends.areFriends</a> */ public T friends_areFriends(Collection<Integer> userIds1, Collection<Integer> userIds2) throws FacebookException, IOException; /** * Retrieves the friends of the currently logged in user. * @return array of friends */ public T friends_get() throws FacebookException, IOException; /** * Retrieves the friends of the currently logged in user, who are also users * of the calling application. * @return array of friends */ public T friends_getAppUsers() throws FacebookException, IOException; /** * Retrieves the requested info fields for the requested set of users. * @param userIds a collection of user IDs for which to fetch info * @param fields a set of ProfileFields * @return a T consisting of a list of users, with each user element * containing the requested fields. */ public T users_getInfo(Collection<Integer> userIds, EnumSet<ProfileField> fields) throws FacebookException, IOException; /** * Retrieves the requested info fields for the requested set of users. * @param userIds a collection of user IDs for which to fetch info * @param fields a set of strings describing the info fields desired, such as "last_name", "sex" * @return a T consisting of a list of users, with each user element * containing the requested fields. */ public T users_getInfo(Collection<Integer> userIds, Set<CharSequence> fields) throws FacebookException, IOException; /** * Retrieves the user ID of the user logged in to this API session * @return the Facebook user ID of the logged-in user */ public int users_getLoggedInUser() throws FacebookException, IOException; /** * Retrieves an indicator of whether the logged-in user has added the * application associated with the _apiKey. * @return boolean indicating whether the user has added the app * @see <a href="http://wiki.developers.facebook.com/index.php/Users.isAppAdded"> * Developers Wiki: Users.isAppAdded</a> */ public boolean users_isAppAdded() throws FacebookException, IOException; /** * Retrieves whether the logged-in user has granted the specified permission to this application. * @param permission an extended permission (e.g. FacebookExtendedPerm.MARKETPLACE, * "photo_upload") * @return boolean indicating whether the user has the permission * @see FacebookExtendedPerm * @see <a href="http://wiki.developers.facebook.com/index.php/Users.hasAppPermission"> * Developers Wiki: Users.hasAppPermission</a> */ public boolean users_hasAppPermission(CharSequence permission) throws FacebookException, IOException; /** * Sets the logged-in user's Facebook status. * Requires the status_update extended permission. * @return whether the status was successfully set * @see #users_hasAppPermission * @see FacebookExtendedPerm#STATUS_UPDATE * @see <a href="http://wiki.developers.facebook.com/index.php/Users.setStatus"> * Developers Wiki: Users.setStatus</a> */ public boolean users_setStatus(String status) throws FacebookException, IOException; /** * Clears the logged-in user's Facebook status. * Requires the status_update extended permission. * @return whether the status was successfully cleared * @see #users_hasAppPermission * @see FacebookExtendedPerm#STATUS_UPDATE * @see <a href="http://wiki.developers.facebook.com/index.php/Users.setStatus"> * Developers Wiki: Users.setStatus</a> */ public boolean users_clearStatus() throws FacebookException, IOException; /** * Used to retrieve photo objects using the search parameters (one or more of the * parameters must be provided). * * @param subjId retrieve from photos associated with this user (optional). * @param albumId retrieve from photos from this album (optional) * @param photoIds retrieve from this list of photos (optional) * * @return an T of photo objects. */ public T photos_get(Integer subjId, Long albumId, Collection<Long> photoIds) throws FacebookException, IOException; /** * Used to retrieve photo objects using the search parameters (one or more of the * parameters must be provided). * * @param albumId retrieve from photos from this album (optional) * @param photoIds retrieve from this list of photos (optional) * @return an T of photo objects. * @see #photos_get(Integer, Long, Collection) * @see <a href="http://wiki.developers.facebook.com/index.php/Photos.get"> * Developers Wiki: Photos.get</a> */ public T photos_get(Long albumId, Collection<Long> photoIds) throws FacebookException, IOException; /** * Used to retrieve photo objects using the search parameters (one or more of the * parameters must be provided). * * @param subjId retrieve from photos associated with this user (optional). * @param photoIds retrieve from this list of photos (optional) * @return an T of photo objects. * @see #photos_get(Integer, Long, Collection) * @see <a href="http://wiki.developers.facebook.com/index.php/Photos.get"> * Developers Wiki: Photos.get</a> */ public T photos_get(Integer subjId, Collection<Long> photoIds) throws FacebookException, IOException; /** * Used to retrieve photo objects using the search parameters (one or more of the * parameters must be provided). * * @param subjId retrieve from photos associated with this user (optional). * @param albumId retrieve from photos from this album (optional) * @return an T of photo objects. * @see #photos_get(Integer, Long, Collection) * @see <a href="http://wiki.developers.facebook.com/index.php/Photos.get"> * Developers Wiki: Photos.get</a> */ public T photos_get(Integer subjId, Long albumId) throws FacebookException, IOException; /** * Used to retrieve photo objects using the search parameters (one or more of the * parameters must be provided). * * @param photoIds retrieve from this list of photos (optional) * @return an T of photo objects. * @see #photos_get(Integer, Long, Collection) * @see <a href="http://wiki.developers.facebook.com/index.php/Photos.get"> * Developers Wiki: Photos.get</a> */ public T photos_get(Collection<Long> photoIds) throws FacebookException, IOException; /** * Used to retrieve photo objects using the search parameters (one or more of the * parameters must be provided). * * @param albumId retrieve from photos from this album (optional) * @return an T of photo objects. * @see #photos_get(Integer, Long, Collection) * @see <a href="http://wiki.developers.facebook.com/index.php/Photos.get"> * Developers Wiki: Photos.get</a> */ public T photos_get(Long albumId) throws FacebookException, IOException; /** * Used to retrieve photo objects using the search parameters (one or more of the * parameters must be provided). * * @param subjId retrieve from photos associated with this user (optional). * @return an T of photo objects. * @see #photos_get(Integer, Long, Collection) * @see <a href="http://wiki.developers.facebook.com/index.php/Photos.get"> * Developers Wiki: Photos.get</a> */ public T photos_get(Integer subjId) throws FacebookException, IOException; /** * Retrieves album metadata. Pass a user id and/or a list of album ids to specify the albums * to be retrieved (at least one must be provided) * * @param userId (optional) the id of the albums' owner (optional) * @param albumIds (optional) the ids of albums whose metadata is to be retrieved
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -