2
我能視頻張貼到牆上的朋友,如果我拿一個url像這樣:帖子上傳Facebook的視頻朋友的牆通過IOS SDK
http://www.facebook.com/video/video.php?v=10150344412195987
,並放進了「寫的東西... 。「在他們的牆上的領域。它張貼我想要的。但是,如果我嘗試通過使用這個圖形API發佈:
NSString *postUrl = @"http://www.facebook.com/video/video.php?v=10150344412195987";
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"post this", @"message",
postUrl, @"source",
NSString *graphPath = [NSString stringWithFormat:@"me/feed"];
FBRequest *req = [facebook requestWithGraphPath:graphPath
andParams:params
andHttpMethod:@"POST"
andDelegate:requestDelegate];
我得到這個錯誤:
(#100) FBCDN image is not allowed in stream: http://www.facebook.com/video/video.php?v=10150344412195987
有沒有解決這個辦法嗎?我使用「鏈接」參數而不是「源」也試過,但後來我得到這個錯誤:
Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x7fabf70 {error=<CFBasicHash 0x7fa4b90 [0x273a380]>{type = mutable dict, count = 2,
entries =>
2 : <CFString 0x7facfb0 [0x273a380]>{contents = "type"} = <CFString 0x7fb4370 [0x273a380]>{contents = "OAuthException"}
3 : <CFString 0x7fb4630 [0x273a380]>{contents = "message"} = <CFString 0x7fb4a50 [0x273a380]>{contents = "An unknown error has occurred."}
}
}'
爲什麼我只能用手張貼到我的朋友牆上,但不是通過圖形API?
編輯:如果我可以在視頻中標記用戶將是理想的解決方案。
該視頻最初來自iphone。這是試圖將其作爲授權用戶分享給朋友的牆。像@「/videos」或@「 /牆」。這就給出了與上面相同的錯誤...即使我使用以下方法提供視頻:NSData * videoData = [NSData dataWithContentsOfFile:movFilePath]; –
drfence
有兩個問題:1)您是否能夠將視頻發佈到牆上? 2)你可以將視頻以外的內容發佈到朋友的牆上嗎?你應該使用我/飼料發佈。 –