當我試圖張貼在我的iphone應用程序的Facebook牆上,我收到消息對話框中的以下消息。iphone facebook集成應用程序響應錯誤
Application response error.
The attachment was either missing or its improperly formatted. you can see this because you are one of the developers of the app.
這裏是代碼我用張貼在Facebook塗鴉牆
FBStreamDialog *dialog = [[[FBStreamDialog alloc] init] autorelease];
[email protected]"Enter your message:";
dialog.attachment = [NSString stringWithFormat:@"Testing"];
[[FBRequest requestWithDelegate:self] call:@"facebook.photos.upload" params:[NSDictionary dictionaryWithObjectsAndKeys:@"AppName",@"caption",nil] dataParam:UIImageJPEGRepresentation([UIImage imageNamed:@"AppImage.png"],1.0)];
[dialog show];
你能幫我嗎?
你能發表一些代碼嗎? – Hanon
是hanon編輯我的問題,並在那裏發佈的代碼 –