- (void)postToWall {
FBStreamDialog* dialog = [[[FBStreamDialog alloc] init] autorelease];
dialog.userMessagePrompt = [NSString stringWithFormat: subjectTitle]; //subjectTitle works here but not as name where i need it.
NSString *src = @"http://www.sample.com/image.png";
NSString *name = storyLink; //<---------------------------------works with storyLink but not subjectTitle. I need subjectTitle to work here
NSString *href = storyLink;
NSString *attachment = [NSString stringWithFormat:@"{\"name\":\"%@\",\"media\":[{\"type\":\"image\", \"src\":\"%@\", \"href\":\"%@\"}]}", name, src, href];
dialog.attachment = attachment;
[dialog show];
}
添加照片我想从instred的http://www.sample.com/image.png到的Facebook墙上的照片库中添加图像。在Facebook上墙
任何人都可以提供我帮....
在此先感谢......
的可能重复[文件的过程使用Facebook Connect为iPhone上传照片](http://stackoverflow.com/questions/750328/documented-process-for-using-facebook-connect-for-the-iphone -to-上载照片) – 2010-09-25 16:52:58