Package facebook4j

Examples of facebook4j.Media


                    && (activityModel.getAttachmentsType().getCategory().equals(Constants.GOOGLE_ACTIVITY_ATTACHMENTS_TYPE_PHOTO)
                    || activityModel.getAttachmentsType().getCategory().equals(Constants.GOOGLE_ACTIVITY_ATTACHMENTS_TYPE_ALBUM))
                      && activityModel.getVerb().getCategory().equals(Constants.GOOGLE_ACTIVITY_VERB_TYPE_POST)) {
                // 写真付き投稿の場合

                Media media = getPhotoMedia(activityModel.getAttachmentsImageUrlString());
                PhotoUpdate photoUpdate = new PhotoUpdate(media);

                if(msg != null) {
                    photoUpdate.setMessage(msg);
                }
View Full Code Here


                URLFetchServiceFactory.getURLFetchService();
        HTTPResponse fetchResponse = fetchService.fetch(new URL(imageUrl));

        InputStream inputStream = new ByteArrayInputStream(fetchResponse.getContent());

        return new Media("photo by plucial", inputStream);

    }
View Full Code Here

TOP

Related Classes of facebook4j.Media

Copyright © 2018 www.massapicom. 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.