2011-02-16 71 views
2

Facebook的視頻上傳錯誤:我使用的舊 組合和鏈接新的API/SDK https://github.com/zoul/facebook-ios-sdk/commit/efb4b44fad333f8daa70a517bb5328b9352320df 並即時得到會話ID正確地在視頻上傳類Facebook的視頻上傳錯誤

 

- (void) startUploadWithURL: (NSURL*) movieURL params: (NSDictionary*) userParams delegate: (id) delegate 
{ 
    apiKey = @"5c009deec3b253bef6fe6cdd97e86b3f"; 
    appSecret = @"218421681dfb46043bed3dd25a03bbce"; 

    if ([self sessionID] == nil) { 
     NSLog(@"Unable to retrieve session key from the access token."); 
     return; 
    } 
    printf(" \n\n session id == %s",[[self sessionID] UTF8String]); 

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithDictionary:userParams]; 
    [params setObject:@"1.0" forKey:@"v"]; 
     [params setObject:@"facebook.video.upload" forKey:@"method"]; 
     [params setObject:[self sessionID] forKey:@"session_key"]; 
     [params setObject:apiKey forKey:@"api_key"]; 
     [params setObject:[self signatureForParams:params] forKey:@"sig"]; 
     [params setObject:[NSData dataWithContentsOfURL:movieURL] forKey:[movieURL lastPathComponent]]; 
     [[FBRequest getRequestWithParams:params httpMethod:@"POST" delegate:delegate requestURL:kAPIURL] connect]; 

} 

它返回了錯誤的結果,並沒有上傳視頻到Facebook

回答

0

沒有使用圖形api你可以上傳視頻到facebook.login facebook並轉到此link。你會得到一個像[email protected]這樣的id。只需將你的視頻郵寄到這個郵件id.you就可以使用一個MFmailcompossor從你的應用程序撰寫郵件。

希望這個幫助

+0

嘿@Sat --V可以搖動世界 - 這聽起來很酷,但你可以請詳細說明它。 – aToz 2011-02-16 14:34:27