I have upload the video on facebook using following code
Help From : https://github.com/zoul/facebook-ios-sdk/
Full Discussion on Stackoverflow : Facebook iOS Upload Video "Unable to retrieve session key from the access token."
Code
FBVideoUpload *upload = [[FBVideoUpload alloc] init];
upload.accessToken = facebookObj.accessToken;
upload.apiKey = fbAppKey;
upload.appSecret = fbAppSecret;
NSString *filePath = @"/Users/pratgupta/Library/Application Support/iPhone Simulator/4.1/Media/DCIM/100APPLE/IMG_0010.M4V";
NSURL *fileURL = [NSURL fileURLWithPath:filePath];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"test", @"title",
@"upload testing", @"description",
nil];
[upload startUploadWithURL:fileURL params:params delegate:self];
By This I am getting this response
<?xml version="1.0" encoding="UTF-8"?>
<video_upload_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd">
<vid>10150166760687147</vid>
<title>test</title>
<description>upload testing</description>
<link>http://www.facebook.com/video/video.php?v=10150166760687147</link>
</video_upload_response>
as it successfully upload the video, But I am not able to see it on my Wall ... even not in My Videos
Please check out these image
There is next previous when I open the link return in FB response and when I goes to the next video then next/previous not showing
http://i.stack.imgur.com/pH7Ba.png
http://i.stack.imgur.com/eUxTm.png
There is no next previous when I goes to my old video
http://i.stack.imgur.com/XdHRF.png
When I goes to My Videos then there is no new video
http://i.stack.imgur.com/yQ2Ub.png
When I edit the image then shows its privacy as EVERYONE , means no privacy issue
http://i.stack.imgur.com/mR9BX.png
EDIT
Even with Privacy ; EVERYONE this video direct link not open in others profile
http://i.stack.imgur.com/YgEjJ.png
Amit Battan
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…