views:

26

answers:

1

Hi All,

I have to upload video on facebook using iphone sdk 4.0 or above.

Thanks in advance Pankaj

A: 

Step 1. Learn how to upload a video for the iPhone. Hint: Look into NSURLConnection and NSOperation. If you are really motivated take a look at ASIHTTPRequest.

Step 2. Learn how to use the Facebook API. Good luck here, their docs are terrible.

Step 3. Put your newfound knowledge to work and wire it all up together. Profit!

Genericrich
thanks my code is :-- FBRequest *m_UploadRequest = [[FBRequest requestWithSession: _session delegate: self] retain]; NSURL *videoUrl=[NSURL URLWithString:@"http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"];NSData* VideoFileData = [NSData dataWithContentsOfURL:videoUrl];NSMutableDictionary* Parameters = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"video.upload", @"method", @"Video Title", @"title", nil]; [m_UploadRequest call: @"facebook.video.upload" params:Parameters dataParam: VideoFileData];//not working.