views:

4

answers:

0

Hi All,

I am trying to upload video on facebook. But my code is not working:--- 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];

Please help me out
Thanks in advance.