Examples of postStatusMessage()


Examples of facebook4j.Facebook.postStatusMessage()

    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("UTF-8");
        String message = request.getParameter("message");
        Facebook facebook = (Facebook) request.getSession().getAttribute("facebook");
        try {
            facebook.postStatusMessage(message);
        } catch (FacebookException e) {
            throw new ServletException(e);
        }
        response.sendRedirect(request.getContextPath()+ "/");
    }
View Full Code Here

Examples of facebook4j.Facebook.postStatusMessage()

            // POST
            if(!activityModel.isAttachmentsFlg()) {
                // 添付がない場合
                if(msg != null) {
                    facebook.postStatusMessage(msg);
                }

            }else if(activityModel.getAttachmentsType().getCategory().equals(Constants.GOOGLE_ACTIVITY_ATTACHMENTS_TYPE_ARTICLE)) {
                // リンク付き投稿の場合
                URL attachmentsUrl = new URL(activityModel.getAttachmentsUrlString());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.