⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ifacebookrestclient.java

📁 FACEBOOK上
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
   */  public boolean sms_canSend(Integer userId)    throws FacebookException, IOException;  /**   * Sends a message via SMS to the user identified by <code>userId</code>, with   * the expectation that the user will reply. The SMS extended permission is required for success.   * The returned mobile session ID can be stored and used in {@link #sms_sendResponse} when   * the user replies.   *   * @param userId a user ID   * @param message the message to be sent via SMS   * @return a mobile session ID (can be used in {@link #sms_sendResponse})   * @throws FacebookException in case of error, e.g. SMS is not enabled   * @throws IOException   * @see FacebookExtendedPerm#SMS   * @see <a href="http://wiki.developers.facebook.com/index.php/Mobile#Application_generated_messages">   *      Developers Wiki: Mobile: Application Generated Messages</a>   * @see <a href="http://wiki.developers.facebook.com/index.php/Mobile#Workflow">   *      Developers Wiki: Mobile: Workflow</a>   */  public int sms_sendMessageWithSession(Integer userId, CharSequence message)    throws FacebookException, IOException;  /**   * Sends a message via SMS to the user identified by <code>userId</code>.   * The SMS extended permission is required for success.   *   * @param userId a user ID   * @param message the message to be sent via SMS   * @throws FacebookException in case of error   * @throws IOException   * @see FacebookExtendedPerm#SMS   * @see <a href="http://wiki.developers.facebook.com/index.php/Mobile#Application_generated_messages">   * Developers Wiki: Mobile: Application Generated Messages</a>   * @see <a href="http://wiki.developers.facebook.com/index.php/Mobile#Workflow">   * Developers Wiki: Mobile: Workflow</a>   */  public void sms_sendMessage(Integer userId, CharSequence message)    throws FacebookException, IOException;    /**   * Call this function and store the result, using it to generate the   * appropriate login url and then to retrieve the session information.   * @return an authentication token   */  public String auth_createToken()    throws FacebookException, IOException;  /**   * Call this function to retrieve the session information after your user has   * logged in.   * @param authToken the token returned by auth_createToken or passed back to your callback_url.   */  public String auth_getSession(String authToken)    throws FacebookException, IOException;  /**   * Call this function to get the user ID.   *   * @return The ID of the current session's user, or -1 if none.   */  public int auth_getUserId(String authToken)    throws FacebookException, IOException;    /**   * Create a marketplace listing. The create_listing extended permission is required.    * @param showOnProfile whether    * @return the id of the created listing   * @see #users_hasAppPermission   * @see FacebookExtendedPerm#MARKETPLACE   * @see <a href="http://wiki.developers.facebook.com/index.php/Marketplace.createListing">   *      Developers Wiki: marketplace.createListing</a>   */  public Long marketplace_createListing(Boolean showOnProfile, MarketplaceListing attrs)    throws FacebookException, IOException;    /**   * Modify a marketplace listing. The create_listing extended permission is required.    * @return the id of the edited listing   * @see <a href="http://wiki.developers.facebook.com/index.php/Marketplace.createListing">   *      Developers Wiki: marketplace.createListing</a>   */  public Long marketplace_editListing(Long listingId, Boolean showOnProfile, MarketplaceListing attrs)    throws FacebookException, IOException;    /**   * Remove a marketplace listing. The create_listing extended permission is required.   * @param listingId the listing to be removed   * @return boolean indicating whether the listing was removed   * @see #users_hasAppPermission   * @see FacebookExtendedPerm#MARKETPLACE   * @see <a href="http://wiki.developers.facebook.com/index.php/Marketplace.removeListing">   *      Developers Wiki: marketplace.removeListing</a>   */  public boolean marketplace_removeListing(Long listingId)    throws FacebookException, IOException;  /**   * Remove a marketplace listing. The create_listing extended permission is required.    * @param listingId the listing to be removed   * @param status MARKETPLACE_STATUS_DEFAULT, MARKETPLACE_STATUS_SUCCESS, or MARKETPLACE_STATUS_NOT_SUCCESS   * @return boolean indicating whether the listing was removed   * @see #users_hasAppPermission   * @see FacebookExtendedPerm#MARKETPLACE   * @see <a href="http://wiki.developers.facebook.com/index.php/Marketplace.removeListing">   *      Developers Wiki: marketplace.removeListing</a>   */  public boolean marketplace_removeListing(Long listingId, CharSequence status)    throws FacebookException, IOException;    /**   * Get the categories available in marketplace.   * @return a T listing the marketplace categories   * @see <a href="http://wiki.developers.facebook.com/index.php/Marketplace.getCategories">   *      Developers Wiki: marketplace.getCategories</a>   */  public T marketplace_getCategories()    throws FacebookException, IOException;  /**   * Get the subcategories available for a category.   * @param category a category, e.g. "HOUSING"   * @return a T listing the marketplace sub-categories   * @see <a href="http://wiki.developers.facebook.com/index.php/Marketplace.getSubCategories">   *      Developers Wiki: marketplace.getSubCategories</a>   */  public T marketplace_getSubCategories(CharSequence category)    throws FacebookException, IOException;  /**   * Fetch marketplace listings, filtered by listing IDs and/or the posting users' IDs.   * @param listingIds listing identifiers (required if uids is null/empty)   * @param userIds posting user identifiers (required if listingIds is null/empty)   * @return a T of marketplace listings   * @see <a href="http://wiki.developers.facebook.com/index.php/Marketplace.getListings">   *      Developers Wiki: marketplace.getListings</a>   */  public T marketplace_getListings(Collection<Long> listingIds, Collection<Integer> userIds)    throws FacebookException, IOException;    /**   * Search for marketplace listings, optionally by category, subcategory, and/or query string.   * @param category the category of listings desired (optional except if subcategory is provided)   * @param subCategory the subcategory of listings desired (optional)   * @param query a query string (optional)   * @return a T of marketplace listings   * @see <a href="http://wiki.developers.facebook.com/index.php/Marketplace.search">   *      Developers Wiki: marketplace.search</a>   */  public T marketplace_search(CharSequence category, CharSequence subCategory, CharSequence query)    throws FacebookException, IOException;    /**   * Retrieves the requested profile fields for the Facebook Pages with the given    * <code>pageIds</code>. Can be called for pages that have added the application    * without establishing a session.   * @param pageIds the page IDs   * @param fields a set of page profile fields   * @return a T consisting of a list of pages, with each page element   *     containing the requested fields.   * @see <a href="http://wiki.developers.facebook.com/index.php/Pages.getInfo">   *      Developers Wiki: Pages.getInfo</a>   */  public T pages_getInfo(Collection<Long> pageIds, EnumSet<PageProfileField> fields)    throws FacebookException, IOException;    /**   * Retrieves the requested profile fields for the Facebook Pages with the given    * <code>pageIds</code>. Can be called for pages that have added the application    * without establishing a session.   * @param pageIds the page IDs   * @param fields a set of page profile fields   * @return a T consisting of a list of pages, with each page element   *     containing the requested fields.   * @see <a href="http://wiki.developers.facebook.com/index.php/Pages.getInfo">   *      Developers Wiki: Pages.getInfo</a>   */  public T pages_getInfo(Collection<Long> pageIds, Set<CharSequence> fields)    throws FacebookException, IOException;    /**   * Retrieves the requested profile fields for the Facebook Pages of the user with the given    * <code>userId</code>.   * @param userId the ID of a user about whose pages to fetch info   * @param fields a set of PageProfileFields   * @return a T consisting of a list of pages, with each page element   *     containing the requested fields.   * @see <a href="http://wiki.developers.facebook.com/index.php/Pages.getInfo">   *      Developers Wiki: Pages.getInfo</a>   */  public T pages_getInfo(Integer userId, EnumSet<PageProfileField> fields)    throws FacebookException, IOException;  /**   * Retrieves the requested profile fields for the Facebook Pages of the user with the given    * <code>userId</code>.   * @param userId the ID of a user about whose pages to fetch info   * @param fields a set of page profile fields   * @return a T consisting of a list of pages, with each page element   *     containing the requested fields.   * @see <a href="http://wiki.developers.facebook.com/index.php/Pages.getInfo">   *      Developers Wiki: Pages.getInfo</a>   */  public T pages_getInfo(Integer userId, Set<CharSequence> fields)    throws FacebookException, IOException;  /**   * Checks whether a page has added the application   * @param pageId the ID of the page   * @return true if the page has added the application   * @see <a href="http://wiki.developers.facebook.com/index.php/Pages.isAppAdded">   *      Developers Wiki: Pages.isAppAdded</a>   */  public boolean pages_isAppAdded(Long pageId)    throws FacebookException, IOException;    /**   * Checks whether a user is a fan of the page with the given <code>pageId</code>.   * @param pageId the ID of the page   * @param userId the ID of the user (defaults to the logged-in user if null)   * @return true if the user is a fan of the page   * @see <a href="http://wiki.developers.facebook.com/index.php/Pages.isFan">   *      Developers Wiki: Pages.isFan</a>   */  public boolean pages_isFan(Long pageId, Integer userId)    throws FacebookException, IOException;    /**   * Checks whether the logged-in user is a fan of the page with the given <code>pageId</code>.   * @param pageId the ID of the page   * @return true if the logged-in user is a fan of the page   * @see <a href="http://wiki.developers.facebook.com/index.php/Pages.isFan">   *      Developers Wiki: Pages.isFan</a>   */  public boolean pages_isFan(Long pageId)    throws FacebookException, IOException;    /**   * Checks whether the logged-in user for this session is an admin of the page    * with the given <code>pageId</code>.   * @param pageId the ID of the page   * @return true if the logged-in user is an admin   * @see <a href="http://wiki.developers.facebook.com/index.php/Pages.isAdmin">   *      Developers Wiki: Pages.isAdmin</a>   */  public boolean pages_isAdmin(Long pageId)    throws FacebookException, IOException;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -