ritamnrg / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

Support for video upload #292

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I downloaded las version of Facebook-java-api and I saew it doesn't support
video upload, so I have implemented it.

Can any one tell me the steps to upload my changes to someone in order to
be included in this client implementation.

Thanks.

Original issue reported on code.google.com by angelo.b...@gmail.com on 10 Feb 2010 at 3:27

GoogleCodeExporter commented 8 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

GoogleCodeExporter commented 8 years ago
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:

GoogleCodeExporter commented 8 years ago
 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