当我试图张贴在我的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编辑我的问题,并在那里发布的代码 –