Open GoogleCodeExporter opened 9 years ago
Hey Angelo, how about your work on video upload. I'm using facebook-java-api
and I
will be glad using this feature.
Thank you.
Original comment by reneci...@gmail.com
on 25 Mar 2010 at 8:37
this is the implementation I made on last december. I don't know if the actual
facebook-api has changed since december.
Original comment by angelo.b...@gmail.com
on 25 Mar 2010 at 10:05
Attachments:
this code worked for me
i am using facebook java api 3.0.2
Attachment attachment1 = new Attachment();
attachment1.setName("Test attachment");
attachment1.setHref("http://www.youtube.com/watch?v=jm3dm5J5r0A&feature=fvst");
attachment1.setCaption("The attachment object holds stuff.");
attachment1.setDescription("This is a test attachment object.");
attachment1.setMedia( createMediaVideo() );
facebookClient.stream_publish(message,attachment1, null, null, null);
System.out.println("successfully updated");
@Deprecated
private AttachmentMediaVideo createMediaVideo() {
AttachmentMediaVideo mediaVideo = new AttachmentMediaVideo( "http://www.youtube.com/v/fzzjgBAaWZw&hl=en&fs=2",
"http://icanhascheezburger.files.wordpress.com/2009/04/funny-pictures-hairless-cat-phones-home.jpg", "kitty", "application/x-shockwave-flash",
"http://icanhascheezburger.com" );
return mediaVideo;
Original comment by archana2...@gmail.com
on 28 Feb 2012 at 9:57
Original issue reported on code.google.com by
angelo.b...@gmail.com
on 10 Feb 2010 at 3:27