0
當我試圖在Facebook上分享我的iOS應用程序的截圖,我得到如下回應:Facebook分享照片:給我(facebookErrDomain錯誤368)
FB錯誤:操作couldn,Äôt完成。 (facebookErrDomain錯誤368)
郵照片代碼
NSMutableDictionary *params = [NSMutableDictionary
dictionaryWithObjectsAndKeys:fbImage, @"picture", fbContent, @"caption"
,nil];
[_facebook requestWithMethodName:@"photos.upload" andParams:params
andHttpMethod:@"POST" andDelegate:self];
我採取使用
UIGraphicsBeginImageContext(self.view.frame.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage * image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
的事情是,我能夠使用到發佈的截圖在我的其他應用程序截圖完全相同的代碼。那意味着這不僅僅是因爲fb服務器問題?有什麼我可能會失蹤?
編輯 我也是用FBConnect在同一項目中使用共享文本:
[_facebook dialog:@"feed" andParams:params andDelegate:self];
使用參數爲:
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
url, @"link",
name, @"name",
caption, @"caption",
desc, @"description",
nil];
和它的作品精美絕倫。
請問你可以把你的代碼放在這裏:-( – 2012-08-13 09:41:25
嗨!感謝您的回覆。代碼具體到哪個函數? – thesecondlastjedi 2012-08-13 10:29:00
可能是這個問題對你有幫助http://stackoverflow.com/questions/11797224/image- post-on-facebook – QueueOverFlow 2012-08-13 12:55:20