Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
526 views
in Technique[技术] by (71.8m points)

cocoa touch - Uplooad Video facebook-ios-sdk : uploaded but not shown on my FB Wall and in My Video

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Now the video uploaded and showing in profile ok.. I think it was the issue on FB API end


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...