0
這段代碼幾天前完全爲我工作。但現在我得到iOS視頻上傳到Facebook - 錯誤,但成功
該操作無法完成。 (com.facebook.sdk error 5.)
錯誤,但視頻已成功上傳。有沒有人以前面臨過這個問題?這可能是什麼問題?
我的代碼是
NSData *videoData = [NSData dataWithContentsOfFile:video_file_location];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
videoData, _videoFileName],
@"video/quicktime", @"contentType",
@"iOS app title", @"title",
@"my description", @"description",
nil];
[FBRequestConnection
startWithGraphPath:@"me/videos"
parameters:params
HTTPMethod:@"POST"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
NSLog(@"FB error - %@", [error localizedDescription]);
}];
我也得到許可與
[FBSession openActiveSessionWithPublishPermissions:[[NSArray alloc] initWithObjects:@"publish_stream", nil]
defaultAudience:FBSessionDefaultAudienceFriends
allowLoginUI:YES
completionHandler:^(FBSession *session,
FBSessionState state, NSError *error) {
[self sessionStateChanged:session state:state error:error];
}];
任何反饋的高度讚賞。
謝謝。那裏FB已經把優先級設置爲中等。所以不能期待儘快解決。 :( – Viraj
已解決 - https://developers.facebook.com/x/bugs/247807142061930/ – Viraj